@@ -17,40 +17,46 @@ document.addEventListener("DOMContentLoaded", () => {
1717 }
1818
1919 document . querySelector ( "#test-example" ) . addEventListener ( "click" , async ( ) => {
20+ const now = new Date ( ) ;
21+ const time = `${ new Date ( ) . getHours ( ) . toString ( ) . padStart ( 2 , "0" ) } :${ new Date ( ) . getMinutes ( ) . toString ( ) . padStart ( 2 , "0" ) } ` ;
2022 await chrome . notifications . create ( {
2123 type : "basic" ,
2224 iconUrl : "icon-48.png" ,
23- title : "x neue Anzeigen!" ,
25+ title : `[ ${ time } ] Test-Anzeige XXXXXXXXX` ,
2426 message : "auf ImmoScout24" ,
2527 requireInteraction : true ,
2628 } ) ;
2729 } ) ;
2830 document . querySelector ( "#test-one" ) . addEventListener ( "click" , async ( ) => {
2931 const firstExposeId = firstExpose . value ;
32+ const now = new Date ( ) ;
33+ const time = `${ new Date ( ) . getHours ( ) . toString ( ) . padStart ( 2 , "0" ) } :${ new Date ( ) . getMinutes ( ) . toString ( ) . padStart ( 2 , "0" ) } ` ;
3034
3135 await chrome . notifications . create ( "immo24:" + firstExposeId , {
3236 type : "basic" ,
3337 iconUrl : "icon-48.png" ,
34- title : " Test-Anzeige: " + firstExposeId ,
38+ title : `[ ${ time } ] Test-Anzeige ${ firstExposeId } ` ,
3539 message : "auf ImmoScout24" ,
3640 requireInteraction : true ,
3741 } ) ;
3842 } ) ;
3943 document . querySelector ( "#test-multiple" ) . addEventListener ( "click" , async ( ) => {
4044 const firstExposeId = firstExpose . value ;
4145 const secondExposeId = secondExpose . value ;
46+ const now = new Date ( ) ;
47+ const time = `${ new Date ( ) . getHours ( ) . toString ( ) . padStart ( 2 , "0" ) } :${ new Date ( ) . getMinutes ( ) . toString ( ) . padStart ( 2 , "0" ) } ` ;
4248
4349 chrome . notifications . create ( "immo24:" + firstExposeId , {
4450 type : "basic" ,
4551 iconUrl : "icon-48.png" ,
46- title : " Test-Anzeige: " + firstExposeId ,
52+ title : `[ ${ time } ] Test-Anzeige ${ firstExposeId } ` ,
4753 message : "auf ImmoScout24" ,
4854 requireInteraction : true ,
4955 } ) ;
5056 chrome . notifications . create ( "immo24:" + secondExposeId , {
5157 type : "basic" ,
5258 iconUrl : "icon-48.png" ,
53- title : " Test-Anzeige: " + secondExposeId ,
59+ title : `[ ${ time } ] Test-Anzeige ${ secondExposeId } ` ,
5460 message : "auf ImmoScout24" ,
5561 requireInteraction : true ,
5662 } ) ;
0 commit comments