Created
February 6, 2019 10:56
-
-
Save dhilipkmr/5d2dc37c99d2848c59f051d5d46b56b8 to your computer and use it in GitHub Desktop.
call listen to mouseover
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
chrome.runtime.onMessage.addListener(hasGotMessage); | |
function hasGotMessage(response, sender, sendResponse) { | |
switch (response.type) { | |
case 'clickResponse': | |
window.sessionStorage.setItem('_imdbRaterEnabled', "1"); | |
listenToMouseover(); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment