@etsoo/appscript 1.2.6 → 1.2.7

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.
@@ -149,8 +149,13 @@ class CoreApp {
149
149
  }
150
150
  }
151
151
  else {
152
- // Remove passphrase
153
- this.storage.setData(CoreApp.devicePassphraseField, undefined);
152
+ // Duplicate tab, session data copied
153
+ // Remove the token, deviceId, and passphrase
154
+ this.storage.clear([
155
+ CoreApp.devicePassphraseField,
156
+ CoreApp.headerTokenField,
157
+ CoreApp.serversideDeviceIdField
158
+ ], false);
154
159
  this.passphrase = '';
155
160
  }
156
161
  }
@@ -146,8 +146,13 @@ export class CoreApp {
146
146
  }
147
147
  }
148
148
  else {
149
- // Remove passphrase
150
- this.storage.setData(CoreApp.devicePassphraseField, undefined);
149
+ // Duplicate tab, session data copied
150
+ // Remove the token, deviceId, and passphrase
151
+ this.storage.clear([
152
+ CoreApp.devicePassphraseField,
153
+ CoreApp.headerTokenField,
154
+ CoreApp.serversideDeviceIdField
155
+ ], false);
151
156
  this.passphrase = '';
152
157
  }
153
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -690,8 +690,16 @@ export abstract class CoreApp<
690
690
  }
691
691
  }
692
692
  } else {
693
- // Remove passphrase
694
- this.storage.setData(CoreApp.devicePassphraseField, undefined);
693
+ // Duplicate tab, session data copied
694
+ // Remove the token, deviceId, and passphrase
695
+ this.storage.clear(
696
+ [
697
+ CoreApp.devicePassphraseField,
698
+ CoreApp.headerTokenField,
699
+ CoreApp.serversideDeviceIdField
700
+ ],
701
+ false
702
+ );
695
703
  this.passphrase = '';
696
704
  }
697
705
  }