adspower-browser 2.0.5 → 2.0.6
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/cli/index.js +4 -4
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -204,9 +204,9 @@ var ensureBrowserPath = () => {
|
|
|
204
204
|
var getApiKeyAndPort = (options) => {
|
|
205
205
|
const apiKey = options.apiKey;
|
|
206
206
|
const port = options.port;
|
|
207
|
-
if (
|
|
207
|
+
if (port) {
|
|
208
208
|
return {
|
|
209
|
-
apiKey,
|
|
209
|
+
apiKey: apiKey || "",
|
|
210
210
|
port
|
|
211
211
|
};
|
|
212
212
|
}
|
|
@@ -228,8 +228,8 @@ var getApiKeyAndPort = (options) => {
|
|
|
228
228
|
return result;
|
|
229
229
|
};
|
|
230
230
|
var hasRunning = async (options) => {
|
|
231
|
-
const {
|
|
232
|
-
if (
|
|
231
|
+
const { port } = options;
|
|
232
|
+
if (port) {
|
|
233
233
|
return true;
|
|
234
234
|
}
|
|
235
235
|
const processInstance = readPidFile();
|