Skip to content

Commit c553ba1

Browse files
replace arrow function in onmessage.addlistener to casual one
Hope, now chrome could properly function in this listener.
1 parent d2dfe46 commit c553ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ setInterval( update_time_on_clock, 20000 );
150150
// load defaults values and transfer them to function create_clock()
151151
chrome.storage.sync.get( document.clock_defaults, create_clock );
152152

153-
chrome.runtime.onMessage.addListener( (request, sender, sendResponse) => {
153+
chrome.runtime.onMessage.addListener( function( request, sender, sendResponse ) {
154154
if( request.visibility == "show" ) {
155155
overlay_clock.style.display = 'block';
156156
}

0 commit comments

Comments
 (0)