c8osdkvuejs
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "c8osdkvuejs", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "convertigo's MBaaS client API service", | ||
@@ -5,0 +5,0 @@ "main": "bundle/index.umd.js", |
@@ -43,3 +43,3 @@ "use strict"; | ||
this.promiseConstructor = new Promise(function (resolve) { | ||
if (window.location.href.startsWith("http") && window.location.href.indexOf("/DisplayObjects") !== -1) { | ||
if (window.location.href.indexOf("http") === 0 && window.location.href.indexOf("/DisplayObjects") !== -1) { | ||
var n = window.location.href.indexOf("/DisplayObjects"); | ||
@@ -51,3 +51,3 @@ _this.endpoint = window.location.href.substring(0, n); | ||
var uri = ""; | ||
if (window.location.href.startsWith("file://")) { | ||
if (window.location.href.indexOf("file://") === 0) { | ||
uri = (window.location.href.substring(0, window.location.href.indexOf("/index.html"))) + "/env.json"; | ||
@@ -54,0 +54,0 @@ } |
@@ -30,3 +30,3 @@ import axios, { AxiosAdapter, AxiosError, AxiosInstance, AxiosRequestConfig, | ||
// get the url from window.location | ||
if (window.location.href.startsWith("http") && window.location.href.indexOf("/DisplayObjects") !== -1) { | ||
if (window.location.href.indexOf("http") === 0 && window.location.href.indexOf("/DisplayObjects") !== -1) { | ||
const n = window.location.href.indexOf("/DisplayObjects"); | ||
@@ -37,3 +37,3 @@ this.endpoint = window.location.href.substring(0, n); | ||
let uri = ""; | ||
if (window.location.href.startsWith("file://")) { | ||
if (window.location.href.indexOf("file://") === 0) { | ||
uri = (window.location.href.substring(0, | ||
@@ -40,0 +40,0 @@ window.location.href.indexOf("/index.html"))) + "/env.json"; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75579