Skip to content
Snippets Groups Projects
Commit 6a81eaf2 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Moved CONST_URL_DOMAIN out to CommonUtilLocal.vue (not in repository)

parent 5008a905
Branches
No related tags found
No related merge requests found
......@@ -74,45 +74,5 @@ export default {
CONST_FIELD_MANDATORY : '<font color=red>*</font>',
data(){
return {
isEmulator : false,
CONST_URL_DOMAIN : 'http://vipslogic-local.no', //'http://logic.testvips.nibio.no/', //'http://vipslogic-local.no',
CONST_URL_DOMAIN_EMULATOR_ANDROID : 'http://10.0.2.2:8080/VIPSLogic', /** Android emulator host loop back */
domain : 'test',
domains : [
'http://vipslogic-local.no',
'http://10.0.2.2:8080/VIPSLogic'
],
}
},
methods :
{
getDomain()
{ let resultURL = (this.isEmulator) ? this.CONST_URL_DOMAIN_EMULATOR_ANDROID : this.CONST_URL_DOMAIN;
return resultURL;
},
//TODO - Below code need to be developed basis of HOST domain search for platform independency
domainCheck()
{
let domain = this.domain;
let domains = this.domains;
let site = 'http://vipslogic-local.no';
const requestAnimeAwait = async (site) => {
const response = await fetch('http://vipslogic-local.no', {mode:'no-cors'});
const json = await response.text();
console.log("async/await based");
console.log(response);
}
requestAnimeAwait();
}
},
}
</script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment