do not display the FAQs page in development mode
This commit is contained in:
parent
9e4faa9a29
commit
177e5127db
|
@ -184,16 +184,19 @@ chrome.storage.local.get('version', prefs => {
|
||||||
// Open FAQs page once after installation to guide new users,
|
// Open FAQs page once after installation to guide new users,
|
||||||
// https://github.com/schomery/stylish-chrome/issues/22#issuecomment-279936160
|
// https://github.com/schomery/stylish-chrome/issues/22#issuecomment-279936160
|
||||||
if (!prefs.version) {
|
if (!prefs.version) {
|
||||||
let version = chrome.runtime.getManifest().version;
|
// do not display the FAQs page in development mode
|
||||||
chrome.storage.local.set({
|
if ('update_url' in chrome.runtime.getManifest()) {
|
||||||
version
|
let version = chrome.runtime.getManifest().version;
|
||||||
}, () => {
|
chrome.storage.local.set({
|
||||||
window.setTimeout(() => {
|
version
|
||||||
chrome.tabs.create({
|
}, () => {
|
||||||
url: 'http://add0n.com/stylus.html?version=' + version + '&type=install'
|
window.setTimeout(() => {
|
||||||
});
|
chrome.tabs.create({
|
||||||
}, 3000);
|
url: 'http://add0n.com/stylus.html?version=' + version + '&type=install'
|
||||||
})
|
});
|
||||||
|
}, 3000);
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user