linter fixes

This commit is contained in:
Richard 2021-04-27 14:28:08 +01:00
parent 03a4f36556
commit e14800b549
2 changed files with 22 additions and 12 deletions

View file

@ -3,15 +3,15 @@ import Vuex from "vuex";
Vue.use(Vuex);
function getOriginFromLocation(){
function getOriginFromLocation() {
// This will default to the same origin that's serving
// the web app - but can be overridden by the URL.
// See also devTools.vue which can change the origin.
let url = new URL(window.location.href);
let origin = url.searchParams.get("overrideOrigin");
if(origin){
if (origin) {
return origin;
}else{
} else {
return url.origin;
}
}