Skip to content

Commit

Permalink
#115 | 'NEW' badge flag to inform about new version
Browse files Browse the repository at this point in the history
changed tab creation method
  • Loading branch information
alan-null committed Jan 10, 2020
1 parent b186c0c commit f811a42
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/chrome/popup/popup-new-version.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html>

<body>
<a id="link" href="https://alan-null.github.io/redirect/sc-ext-update" target="_blank"></a>
<script src="scripts/popup-new-version.js"></script>
</body>

Expand Down
2 changes: 1 addition & 1 deletion app/chrome/popup/scripts/popup-new-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) {
sc_ext_setVersion_request: true,
version: chrome.runtime.getManifest().version
}, () => {
document.getElementById("link").click();
chrome.tabs.create({ url: "https://alan-null.github.io/redirect/sc-ext-update" });
});
});
2 changes: 1 addition & 1 deletion app/chrome/popup/scripts/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'use strict';

document.getElementById('go-to-options').addEventListener('click', function () {
window.open(chrome.runtime.getURL('options/options.html'));
chrome.tabs.create({ url: chrome.runtime.getURL("options/options.html") });
});
document.getElementById('version').textContent = "v." + chrome.runtime.getManifest().version;

Expand Down

0 comments on commit f811a42

Please sign in to comment.