mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
open the modal by click override
This commit is contained in:
@@ -33,9 +33,15 @@ setUpLogging();
|
||||
setupAnalytics(); // just create queues for analytics, no scripts loaded at this time
|
||||
const store = getStore();
|
||||
|
||||
export default new Vue({
|
||||
const vueInstance = new Vue({
|
||||
el: '#app',
|
||||
router,
|
||||
store,
|
||||
render: h => h(AppComponent),
|
||||
});
|
||||
|
||||
export default vueInstance;
|
||||
|
||||
window.externalLink = url => {
|
||||
vueInstance.$root.$emit('bv::show::modal', 'external-link-modal', url);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user