-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#115 | 'NEW' badge flag to inform about new version
- Loading branch information
Showing
4 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<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> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference path='../../../../typings/chrome/chrome.d.ts'/> | ||
/// <reference path='../../../options/providers/OptionsProvider.ts'/> | ||
/// <reference path='../../../options/models/LinkItem.ts'/> | ||
|
||
|
||
'use strict'; | ||
|
||
chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) { | ||
var activeTab = tabs[0]; | ||
chrome.tabs.sendMessage(activeTab.id, { | ||
sc_ext_setVersion_request: true, | ||
version: chrome.runtime.getManifest().version | ||
},()=>{ | ||
document.getElementById("link").click(); | ||
}); | ||
}); |