linter fixes
This commit is contained in:
parent
03a4f36556
commit
e14800b549
2 changed files with 22 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue