@todesktop/shared 7.155.0 → 7.157.0
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/desktopify2.d.ts +4 -4
- package/package.json +1 -1
- package/src/desktopify2.ts +5 -4
package/lib/desktopify2.d.ts
CHANGED
|
@@ -246,7 +246,7 @@ export interface DesktopifyApp2 {
|
|
|
246
246
|
/**
|
|
247
247
|
* Regex patterns for internal app urls
|
|
248
248
|
*/
|
|
249
|
-
internalUrls
|
|
249
|
+
internalUrls: ISwitchableValue<string>;
|
|
250
250
|
/**
|
|
251
251
|
* By default ToDesktop uses native `window.open` to support Firebase social login.
|
|
252
252
|
* This makes the app use electron's `window.open`.
|
|
@@ -255,7 +255,7 @@ export interface DesktopifyApp2 {
|
|
|
255
255
|
/**
|
|
256
256
|
* Specifys the app's user agent
|
|
257
257
|
*/
|
|
258
|
-
userAgent
|
|
258
|
+
userAgent: ISwitchableValue<string>;
|
|
259
259
|
/**
|
|
260
260
|
* Disable devTools on all app windows
|
|
261
261
|
*/
|
|
@@ -263,7 +263,7 @@ export interface DesktopifyApp2 {
|
|
|
263
263
|
/**
|
|
264
264
|
* Registers an app protocol. Format should be `{APP_PROTOCOL}://` e.g. `example://`
|
|
265
265
|
*/
|
|
266
|
-
appProtocol
|
|
266
|
+
appProtocol: ISwitchableValue<string>;
|
|
267
267
|
/**
|
|
268
268
|
* Disables the same-origin policy
|
|
269
269
|
*/
|
|
@@ -378,6 +378,6 @@ export interface DesktopifyApp2 {
|
|
|
378
378
|
fileAssetDetailsList?: FileAssetDetails[];
|
|
379
379
|
}
|
|
380
380
|
export interface IApp2 extends BaseApp {
|
|
381
|
-
desktopApp
|
|
381
|
+
desktopApp?: DesktopifyApp2;
|
|
382
382
|
}
|
|
383
383
|
export {};
|
package/package.json
CHANGED
package/src/desktopify2.ts
CHANGED
|
@@ -371,7 +371,7 @@ export interface DesktopifyApp2 {
|
|
|
371
371
|
/**
|
|
372
372
|
* Regex patterns for internal app urls
|
|
373
373
|
*/
|
|
374
|
-
internalUrls
|
|
374
|
+
internalUrls: ISwitchableValue<string>;
|
|
375
375
|
/**
|
|
376
376
|
* By default ToDesktop uses native `window.open` to support Firebase social login.
|
|
377
377
|
* This makes the app use electron's `window.open`.
|
|
@@ -380,7 +380,7 @@ export interface DesktopifyApp2 {
|
|
|
380
380
|
/**
|
|
381
381
|
* Specifys the app's user agent
|
|
382
382
|
*/
|
|
383
|
-
userAgent
|
|
383
|
+
userAgent: ISwitchableValue<string>;
|
|
384
384
|
/**
|
|
385
385
|
* Disable devTools on all app windows
|
|
386
386
|
*/
|
|
@@ -388,7 +388,7 @@ export interface DesktopifyApp2 {
|
|
|
388
388
|
/**
|
|
389
389
|
* Registers an app protocol. Format should be `{APP_PROTOCOL}://` e.g. `example://`
|
|
390
390
|
*/
|
|
391
|
-
appProtocol
|
|
391
|
+
appProtocol: ISwitchableValue<string>;
|
|
392
392
|
/**
|
|
393
393
|
* Disables the same-origin policy
|
|
394
394
|
*/
|
|
@@ -504,5 +504,6 @@ export interface DesktopifyApp2 {
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
export interface IApp2 extends BaseApp {
|
|
507
|
-
desktopApp
|
|
507
|
+
// Old apps don't have the `desktopApp` property so let's not assume it exists
|
|
508
|
+
desktopApp?: DesktopifyApp2;
|
|
508
509
|
}
|