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
| // self is window proxy in IE<=10, eval handles this | |
| var _global = (function () { try { return Function('return this')() } catch (e) {} })() // browsers without CSP, Node | |
| || typeof globalThis !== 'undefined' && globalThis // new and polyfilled browsers/workers CSP, newer Node with broken eval | |
| || typeof self !== 'undefined' && self // old browsers/workers with CSP | |
| || typeof global !== 'undefined' && global // old Node with broken eval | |
| || typeof window !== 'undefined' && window; // fallback for exotic environments |
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
| import Vue from 'vue'; | |
| import VueRouter from 'vue-router'; | |
| import applyOnRouterAbortShim from './on-router-abort-shim'; | |
| Vue.use(VueRouter); | |
| const router = new VueRouter(...); | |
| applyOnRouterAbortShim(router); |
OlderNewer