Allow fullscreen in iframe

This commit is contained in:
Sam Potts
2018-03-27 21:13:22 +11:00
parent 1a032ea498
commit d96957d086
15 changed files with 1867 additions and 1098 deletions

View File

@ -208,15 +208,6 @@ const utils = {
return `${prefix}-${Math.floor(Math.random() * 10000)}`;
},
// Determine if we're in an iframe
inFrame() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
},
// Wrap an element
wrap(elements, wrapper) {
// Convert `elements` to an array, if necessary.