@optimizely/nuclear-router
Version:
NuclearJS Router
21 lines (17 loc) • 346 B
JavaScript
function addEventListener() {
window.addEventListener.apply(window, arguments)
}
function removeEventListener() {
window.removeEventListener.apply(window, arguments)
}
/**
* @param {String} location
*/
function navigate(location) {
window.location = location
}
export default {
navigate,
addEventListener,
removeEventListener,
}