@symbo.ls/utils
Advanced tools
Comparing version 2.11.497 to 2.11.504
@@ -26,6 +26,6 @@ "use strict"; | ||
module.exports = __toCommonJS(browser_exports); | ||
var toggleFullscreen = async (el) => { | ||
async function toggleFullscreen(opts) { | ||
if (!document.fullscreenElement) { | ||
try { | ||
await (el.node || document).requestFullscreen(); | ||
await (this.node || document).requestFullscreen(); | ||
} catch (err) { | ||
@@ -37,2 +37,2 @@ console.warn(`Error attempting to enable fullscreen mode: ${err.message} (${err.name})`); | ||
} | ||
}; | ||
} |
{ | ||
"name": "@symbo.ls/utils", | ||
"version": "2.11.497", | ||
"version": "2.11.504", | ||
"author": "symbo.ls", | ||
@@ -29,3 +29,3 @@ "files": [ | ||
}, | ||
"gitHead": "a0c5801e510630ee7b7ce38d995ed5db8408f320" | ||
"gitHead": "faa2f47da27dd29f7c6a6637996c9bb016a2d356" | ||
} |
'use strict' | ||
export const toggleFullscreen = async (el) => { | ||
export async function toggleFullscreen (opts) { | ||
if (!document.fullscreenElement) { | ||
try { | ||
await (el.node || document).requestFullscreen() | ||
await (this.node || document).requestFullscreen() | ||
} catch (err) { | ||
@@ -8,0 +8,0 @@ console.warn(`Error attempting to enable fullscreen mode: ${err.message} (${err.name})`) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
175183
4686