@openfin/remote-adapter 45.100.70 → 45.100.72
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/out/remote-adapter.js +8 -2
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -7563,13 +7563,15 @@ class System extends EmitterBase {
|
|
|
7563
7563
|
* * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
|
|
7564
7564
|
* * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
|
|
7565
7565
|
* * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
|
|
7566
|
+
* * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
|
|
7566
7567
|
* @example
|
|
7567
7568
|
* ```js
|
|
7568
7569
|
* const clearCacheOptions = {
|
|
7569
7570
|
* appcache: true,
|
|
7570
7571
|
* cache: true,
|
|
7571
7572
|
* cookies: true,
|
|
7572
|
-
* localStorage: true
|
|
7573
|
+
* localStorage: true,
|
|
7574
|
+
* windowState: true
|
|
7573
7575
|
* };
|
|
7574
7576
|
* fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
|
|
7575
7577
|
* ```
|
|
@@ -7598,12 +7600,16 @@ class System extends EmitterBase {
|
|
|
7598
7600
|
*
|
|
7599
7601
|
* @param options - Optional configuration for what data to clear
|
|
7600
7602
|
*
|
|
7603
|
+
* @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
|
|
7604
|
+
* After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
|
|
7605
|
+
*
|
|
7601
7606
|
* @example
|
|
7602
7607
|
* ```js
|
|
7603
7608
|
* // Clear only cookies and localStorage for a specific origin
|
|
7604
7609
|
* await fin.System.clearCacheData({
|
|
7605
7610
|
* dataTypes: ['cookies', 'localStorage'],
|
|
7606
|
-
* origins: ['http://localhost:8081']
|
|
7611
|
+
* origins: ['http://localhost:8081'],
|
|
7612
|
+
* windowState: true
|
|
7607
7613
|
* });
|
|
7608
7614
|
*
|
|
7609
7615
|
* // Clear everything except for a specific origin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "45.100.
|
|
3
|
+
"version": "45.100.72",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"es-toolkit": "^1.39.3",
|
|
18
18
|
"tslib": "2.8.1",
|
|
19
|
-
"@openfin/core": "45.100.
|
|
19
|
+
"@openfin/core": "45.100.72"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"prebuild": "rimraf ./out",
|