Prevent duplicate install notifications (#125)

This commit is contained in:
Maxim Baz
2019-04-19 00:36:55 +02:00
committed by GitHub
parent 453aff64fe
commit 3d487e504c

View File

@@ -1014,12 +1014,15 @@ function onExtensionInstalled(details) {
}; };
if (details.reason === "install") { if (details.reason === "install") {
show( if (localStorage.getItem("installed") === null) {
"installed", localStorage.setItem("installed", Date.now());
"browserpass: Install native host app", show(
"Remember to install the complementary native host app to use this extension.\n" + "installed",
"Instructions here: https://github.com/browserpass/browserpass-native" "browserpass: Install native host app",
); "Remember to install the complementary native host app to use this extension.\n" +
"Instructions here: https://github.com/browserpass/browserpass-native"
);
}
} else if (details.reason === "update") { } else if (details.reason === "update") {
var changelog = { var changelog = {
3000000: 3000000: