diff --git a/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue b/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue index 07806e2f..f0372c94 100644 --- a/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue +++ b/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue @@ -2,7 +2,7 @@
- + @@ -19,19 +19,22 @@ export default { data: function() { return { - currentOrigin: this.$store.state.origin + newOrigin: this.$store.state.origin }; }, mounted() { - if (!this.$store.getters.ready) { - this.currentOrigin = "http://microscope.local:5000"; + if (localStorage.overrideOrigin){ + this.newOrigin = localStorage.overrideOrigin; + }else{ + this.newOrigin = "http://microscope.local:5000"; } }, methods: { overrideAPIHost: function() { - this.$store.commit("changeOrigin", this.currentOrigin); + this.$store.commit("changeOrigin", this.newOrigin); + localStorage.overrideOrigin = this.newOrigin } } };