Created
August 8, 2024 17:56
-
-
Save ericakfranz/126b8f7fe27695e43cd905d917f25fc1 to your computer and use it in GitHub Desktop.
OM Embed Vue example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using Vue Router. | |
import Vue from 'vue'; | |
import Router from 'vue-router'; | |
Vue.use(Router); | |
const router = new Router ({ | |
// Your vue router settings. | |
}); | |
router.beforeEach((to, from, next) => { | |
if (window.om5678_1234) { | |
window.om5678_1234.reset(); | |
} | |
next(); | |
}); | |
export default router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment