Skip to content

Commit 3047b93

Browse files
fix delay in updating default app Id in extension
1 parent df15bbe commit 3047b93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/javascript/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ const getAppId = () => {
1313
let app_id = null;
1414
const user_app_id = ''; // you can insert Application ID of your registered application here
1515
const config_app_id = window.localStorage.getItem('config.app_id');
16-
window.localStorage.removeItem('config.default_app_id');
1716
if (config_app_id) {
1817
app_id = config_app_id;
1918
} else if (/staging\.binary\.com/i.test(window.location.hostname)) {
19+
window.localStorage.removeItem('config.default_app_id');
2020
app_id = 1098;
2121
} else if (user_app_id.length) {
2222
window.localStorage.setItem('config.default_app_id', user_app_id); // it's being used in endpoint chrome extension - please do not remove
2323
app_id = user_app_id;
2424
} else {
25+
window.localStorage.removeItem('config.default_app_id');
2526
app_id = 1;
2627
}
2728
return app_id;

0 commit comments

Comments
 (0)