@etsoo/appscript 1.5.39 → 1.5.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/app/CoreApp.js +3 -1
- package/lib/mjs/app/CoreApp.js +3 -1
- package/package.json +1 -1
- package/src/app/CoreApp.ts +5 -1
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -129,7 +129,6 @@ class CoreApp {
|
|
|
129
129
|
this.pendings = [];
|
|
130
130
|
this._authorized = false;
|
|
131
131
|
this._isReady = false;
|
|
132
|
-
this._embedded = false;
|
|
133
132
|
this._isTryingLogin = false;
|
|
134
133
|
/**
|
|
135
134
|
* Last called with token refresh
|
|
@@ -186,6 +185,9 @@ class CoreApp {
|
|
|
186
185
|
this.fields = IApp_1.appFields.reduce((a, v) => ({ ...a, [v]: 'smarterp-' + v + '-' + name }), {});
|
|
187
186
|
// Device id
|
|
188
187
|
this._deviceId = storage.getData(this.fields.deviceId, '');
|
|
188
|
+
// Embedded
|
|
189
|
+
this._embedded =
|
|
190
|
+
this.storage.getData(this.fields.embedded) ?? false;
|
|
189
191
|
const { currentCulture, currentRegion } = settings;
|
|
190
192
|
// Load resources
|
|
191
193
|
Promise.all([loadCrypto(), this.changeCulture(currentCulture)]).then(([cj, _resources]) => {
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -126,7 +126,6 @@ export class CoreApp {
|
|
|
126
126
|
this.pendings = [];
|
|
127
127
|
this._authorized = false;
|
|
128
128
|
this._isReady = false;
|
|
129
|
-
this._embedded = false;
|
|
130
129
|
this._isTryingLogin = false;
|
|
131
130
|
/**
|
|
132
131
|
* Last called with token refresh
|
|
@@ -183,6 +182,9 @@ export class CoreApp {
|
|
|
183
182
|
this.fields = appFields.reduce((a, v) => ({ ...a, [v]: 'smarterp-' + v + '-' + name }), {});
|
|
184
183
|
// Device id
|
|
185
184
|
this._deviceId = storage.getData(this.fields.deviceId, '');
|
|
185
|
+
// Embedded
|
|
186
|
+
this._embedded =
|
|
187
|
+
this.storage.getData(this.fields.embedded) ?? false;
|
|
186
188
|
const { currentCulture, currentRegion } = settings;
|
|
187
189
|
// Load resources
|
|
188
190
|
Promise.all([loadCrypto(), this.changeCulture(currentCulture)]).then(([cj, _resources]) => {
|
package/package.json
CHANGED
package/src/app/CoreApp.ts
CHANGED
|
@@ -248,7 +248,7 @@ export abstract class CoreApp<
|
|
|
248
248
|
this.storage.setData(this.fields.cachedUrl, value);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
private _embedded: boolean
|
|
251
|
+
private _embedded: boolean;
|
|
252
252
|
/**
|
|
253
253
|
* Is embedded
|
|
254
254
|
*/
|
|
@@ -361,6 +361,10 @@ export abstract class CoreApp<
|
|
|
361
361
|
// Device id
|
|
362
362
|
this._deviceId = storage.getData(this.fields.deviceId, '');
|
|
363
363
|
|
|
364
|
+
// Embedded
|
|
365
|
+
this._embedded =
|
|
366
|
+
this.storage.getData<boolean>(this.fields.embedded) ?? false;
|
|
367
|
+
|
|
364
368
|
const { currentCulture, currentRegion } = settings;
|
|
365
369
|
|
|
366
370
|
// Load resources
|