Permalink
Browse files

Removed checkForUpdateAvailable()

Updates are now handled a different way making this code obsolete.
  • Loading branch information...
Kadauchi committed Mar 31, 2018
1 parent ccd76b4 commit adeee3f07563abd7e3330d7fef7fa789ef622d31
Showing with 0 additions and 13 deletions.
  1. +0 −13 popup/popup.js
@@ -2,17 +2,4 @@
(function getVersion () {
document.getElementById(`version`).textContent = `v${chrome.runtime.getManifest().version}`
})();
(function checkForUpdateAvailable () {
chrome.runtime.sendMessage({ checkForUpdateAvailable: true }, (response) => {
if (response) {
const update = document.createElement(`button`)
update.className = `btn btn-sm btn-success fa fa-arrow-alt-circle-up float-right`
update.addEventListener(`click`, (event) => {
chrome.runtime.reload()
})
document.getElementById(`version`).parentElement.appendChild(update)
}
})
})()

0 comments on commit adeee3f

Please sign in to comment.