diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index b6f2df5..b464a74 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -9,6 +9,7 @@
+
{sending_report = true}" :value=" $t('report') " />
@@ -63,6 +64,7 @@ export default {
theme: 'light',
report: '',
sending_report: false,
+ connect_dev: undefined,
}),
computed: {
},
@@ -98,6 +100,11 @@ export default {
// Send message to SW to skip the waiting and activate the new SW
this.registration.waiting.postMessage({ type: 'SKIP_WAITING' })
},
+ resetConnection() {
+ this.$socket.disconnect();
+ window.localStorage.removeItem('connect-dev');
+ window.navigation.reload();
+ },
detectColorScheme() {
if(localStorage.getItem("theme")){
this.theme = localStorage.getItem("theme")
@@ -146,6 +153,9 @@ export default {
userLang = 'en';
this.$i18n.locale = userLang.split('-')[0]
}
+ if (window.localStorage.getItem('connect-dev')) {
+ this.connect_dev = window.localStorage.getItem('connect-dev')
+ }
this.detectColorScheme()
if (window.location.origin.indexOf('localhost') !== -1) return;
datadogRum.init({
diff --git a/frontend/src/main.js b/frontend/src/main.js
index 38ee88c..e2a945a 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -3,10 +3,17 @@ import App from './App.vue'
Vue.config.productionTip = false
import VueSocketIO from 'bang-vue-socket.io'
-Vue.use(new VueSocketIO({
- debug: Vue.config.devtools,
- connection: Vue.config.devtools ? `http://${window.location.hostname}:5001` : window.location.origin,
-}))
+if (window.localStorage.getItem('connect-dev')) {
+ Vue.use(new VueSocketIO({
+ debug: true,
+ connection: window.localStorage.getItem('connect-dev'),
+ }))
+} else {
+ Vue.use(new VueSocketIO({
+ debug: Vue.config.devtools,
+ connection: (Vue.config.devtools) ? `http://${window.location.hostname}:5001` : window.location.origin,
+ }))
+}
import PrettyCheckbox from 'pretty-checkbox-vue';
Vue.use(PrettyCheckbox)