channel-worker 1.0.9 → 1.0.10
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/nst-manager.js +4 -3
- package/package.json +1 -1
package/lib/nst-manager.js
CHANGED
|
@@ -114,10 +114,11 @@ class NstManager {
|
|
|
114
114
|
profileId = await this.ensureProfile(profileIdOrName, { extensionPath: options.extensionPath });
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
//
|
|
117
|
+
// If already running, stop first to reload with fresh extension
|
|
118
118
|
if (await this.isProfileRunning(profileId)) {
|
|
119
|
-
console.log(`[nst] Profile ${profileId} already running —
|
|
120
|
-
|
|
119
|
+
console.log(`[nst] Profile ${profileId} already running — restarting to load extension`);
|
|
120
|
+
await this.stopProfile(profileId);
|
|
121
|
+
await new Promise(r => setTimeout(r, 3000)); // wait for browser to close
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
// Set proxy before launch
|