Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
received (data) {
if (data.cableReady)
CableReady.perform(data.operations, {
emitMissingElementWarnings: false
})
}
})
received: data => {
if (!data.cableReady) return
const urls = [
...new Set(data.operations.morph.map(m => m.stimulusReflex.url))
]
if (urls.length !== 1 || urls[0] !== location.href) return
CableReady.perform(data.operations)
}
}
received (data) {
if (data.cableReady) CableReady.perform(data.operations)
}
}
received(data) {
if (data.cableReady) {
CableReady.perform(data.operations, {
emitMissingElementWarnings: false
})
document.dispatchEvent(
new CustomEvent('futurism:appeared', {
bubbles: true,
cancelable: true
})
)
}
}
})