1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-06-21 04:31:35 +00:00
parent 65d1e262bf
commit aa87b858ba

View File

@ -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));