This repository was archived by the owner on Feb 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,12 +93,23 @@ var opt = {
9393 ]
9494} ;
9595
96- chrome . notifications . create ( 'newVersion-' + manifestData , opt , function ( ) {
96+ chrome . storage . sync . get ( [ 'newVersionNotify' ] , function ( result ) {
9797
98- } ) ;
98+ if ( typeof result . newVersionNotify == 'undefined' ) {
99+ result . newVersionNotify = false ;
100+ }
99101
100- chrome . notifications . onButtonClicked . addListener ( function ( notificationId , buttonIndex ) {
101- if ( notificationId == 'newVersion-' + manifestData && buttonIndex == 1 ) {
102- chrome . tabs . create ( { url : chrome . extension . getURL ( "/src/options/index.html" ) } ) ;
102+ if ( manifestData . version != result . newVersionNotify ) {
103+ chrome . notifications . create ( 'newVersion-' + manifestData . version , opt , function ( ) {
104+ chrome . storage . sync . set ( {
105+ newVersionNotify : manifestData . version
106+ } ) ;
107+ } ) ;
108+
109+ chrome . notifications . onButtonClicked . addListener ( function ( notificationId , buttonIndex ) {
110+ if ( notificationId == 'newVersion-' + manifestData . version && buttonIndex == 1 ) {
111+ chrome . tabs . create ( { url : chrome . extension . getURL ( "/src/options/index.html" ) } ) ;
112+ }
113+ } ) ;
103114 }
104- } ) ;
115+ } ) ;
Original file line number Diff line number Diff line change @@ -95,6 +95,12 @@ var AVATARS /* The legend of Aang */ = [
9595var CHANGELOG = [
9696
9797 {
98+ version : "2.1.1" ,
99+ date : "23 Sep 2018" ,
100+ lines : [
101+ "Fix notify"
102+ ]
103+ } , {
98104 version : "2.1.0" ,
99105 date : "21 Sep 2018" ,
100106 lines : [
Original file line number Diff line number Diff line change 11{
22 "name" : " TLmanaGer" ,
3- "version" : " 2.1.0 " ,
3+ "version" : " 2.1.1 " ,
44 "manifest_version" : 2 ,
55 "description" : " Desarrollamiento tool" ,
66 "homepage_url" : " https://github.com/joelthorner/TLmanaGer" ,
You can’t perform that action at this time.
0 commit comments