Skip to content

Commit

Permalink
Add uninstall logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin committed Jun 6, 2019
1 parent ad17843 commit cf58189
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ storage.Read( () => {
}, ver.FixSubver( ver.patch, storage.simpread ));
}
menu.CreateAll();
uninstall();
});

/**
Expand Down Expand Up @@ -358,4 +359,6 @@ function analytics() {
/**
* Uninstall
*/
browser.runtime.setUninstallURL( storage.service + "/uninstall" );
function uninstall() {
browser.runtime.setUninstallURL( storage.option.uninstall ? storage.service + "/uninstall" : "" );
}

0 comments on commit cf58189

Please sign in to comment.