Update background.js

This commit is contained in:
Official Noob
2019-08-12 21:34:03 +01:00
committed by GitHub
parent 37816ba762
commit a5e3dcaf4d

View File

@@ -55,7 +55,8 @@ chrome.runtime.onInstalled.addListener(function (object) {
// TODO (shownInstallPage): remove this if statement, but leave contents // TODO (shownInstallPage): remove this if statement, but leave contents
if (!shownInstallPage){ if (!shownInstallPage){
//open up the install page //open up the install page
chrome.tabs.create({url: chrome.extension.getURL("/help/index.html")});
chrome.tabs.create({url: chrome.extension.getURL("/help/"+navigator.language.split("-")[0]"-index.html")});
} }
// TODO (shownInstallPage): delete if statement and contents // TODO (shownInstallPage): delete if statement and contents