forked from Simnation/Main
13 lines
312 B
JavaScript
13 lines
312 B
JavaScript
class CustomApp {
|
|
constructor() {
|
|
window.addEventListener('message', (event) => {
|
|
if (!event.data) return
|
|
const e = event.data
|
|
if (e.customevent === 'test') {
|
|
console.log(`TEST!`)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
const customApp = new CustomApp()
|