diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index abf668dec889..71cd879ee146 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -59484,7 +59484,7 @@ _initialState(isTesting) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.legacy_AppState), - $async$returnValue, $async$next = [], prefState, e, exception, t1, browserRoute, reportErrors, referralCode, prefs, prefString, url; + $async$returnValue, $async$next = [], e, exception, t1, browserRoute, reportErrors, referralCode, prefs, prefString, url, prefState; var $async$_initialState = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -59498,10 +59498,7 @@ // returning from await. prefs = $async$result; prefString = prefs == null ? null : A._asStringQ(J.$index$asx(prefs._preferenceCache, "shared_prefs")); - url = window.location.href; - if (J.contains$1$asx(url, "?")) - url = url.split("?")[0]; - url = A.formatApiUrl(J.contains$1$asx(url, "#") ? url.split("#")[0] : url); + url = A.WebUtils_browserUrl(); prefState = A.PrefState_PrefState(); if (prefString != null) try { @@ -112644,6 +112641,12 @@ this.context = t1; this.onComplete = t2; }, + WebUtils_browserUrl() { + var url = window.location.href; + if (J.contains$1$asx(url, "?")) + url = url.split("?")[0]; + return A.formatApiUrl(J.contains$1$asx(url, "#") ? url.split("#")[0] : url); + }, WebUtils_downloadBinaryFile(filename, data) { var t1 = A.AnchorElement_AnchorElement("data:application/octet-stream;charset=utf-16le;base64," + B.C_Base64Codec.get$encoder().convert$1(data)); t1.setAttribute("download", filename); @@ -112669,7 +112672,7 @@ // Function start t1 = A.Configuration$(null); t2 = A.BrowserAuthOptions$(null); - t2.redirectUri = "https://staging.invoicing.co/"; + t2.redirectUri = A.WebUtils_browserUrl(); t2.clientId = "1023b9ce-5b09-4f04-98f8-e1ed85a72332"; t1.auth = t2; publicClientApp = A.PublicClientApplication_PublicClientApplication(new A.Configuration(t1));