I removed this and stuff still works, therefore it must not have been important

This commit is contained in:
Tamius Han 2020-12-03 01:05:57 +01:00
parent 145b237701
commit 357b7a0365

View File

@ -123,11 +123,7 @@ class UwUi {
return; return;
} }
try { this.vuexStore = createStore({
// Vue.prototype.$browser = global.browser;
// Vue.use(Vuex);
this.vuexStore = createStore({
plugins: [ plugins: [
VuexWebExtensions({ VuexWebExtensions({
persistentStates: [ persistentStates: [
@ -171,9 +167,6 @@ class UwUi {
} }
} }
}); });
} catch (e) {
console.error("Ultrawidify failed to initialize vue. Error:", e);
}
// make sure we don't init twice // make sure we don't init twice
this.vueInitiated = true; this.vueInitiated = true;
@ -194,7 +187,6 @@ class UwUi {
try { try {
createApp(LoggerUi) createApp(LoggerUi)
.component('LoggerUi', LoggerUi)
.use(this.vuexStore) .use(this.vuexStore)
.mount(`#${uwid}`); .mount(`#${uwid}`);