Skip to content

Commit 64e5ea3

Browse files
committed
needUpdate: log message if status is error-invalidAppId
1 parent 6354a40 commit 64e5ea3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/needUpdate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export default (chromeStoreID, currentVersion) => new Promise(resolve =>
77
).then((res) => {
88
parseString(res.body, (err, result) => {
99
const app = result.gupdate.app[0].$;
10+
if (app.status === 'error-invalidAppId') {
11+
console.log('Check update with invalid chrome extension id', chromeStoreID); // eslint-disable-line
12+
return resolve(false);
13+
}
1014
if (app.status !== 'ok') return resolve(false);
1115

1216
const { status, version: newestVersion } = result.gupdate.app[0].updatecheck[0].$;

0 commit comments

Comments
 (0)