mirror of
https://github.com/a2nt/meta-lightbox.git
synced 2024-10-22 17:05:53 +02:00
IMPR: Create Metalighbox container
This commit is contained in:
parent
abeb029acc
commit
b18ede53ce
@ -7,9 +7,12 @@
|
|||||||
import Events from './_events'
|
import Events from './_events'
|
||||||
import MetaWindow from './window'
|
import MetaWindow from './window'
|
||||||
|
|
||||||
const container = document.getElementById('MetaLightboxApp')
|
let container = document.getElementById('MetaLightboxApp');
|
||||||
if (!container) {
|
if (!container) {
|
||||||
console.log('MetaWindow: missing container #MetaLightboxApp')
|
console.warn(`MetaWindow: missing container #MetaLightboxApp - create new one`);
|
||||||
|
container = document.createElement("div");
|
||||||
|
container.setAttribute("id", "MetaLightboxApp");
|
||||||
|
document.querySelector("body").append(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user