Create an example that includes tests and how to run them. #122 (#130)

This commit is contained in:
Mykyta Khmel
2016-12-01 01:09:28 +02:00
committed by Kumar McMillan
parent 01181a350b
commit 395786e353
19 changed files with 214 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
setInterval(function() {
var $game = document.querySelector('#game');
if($game.innerText !== 'ping'){
$game.innerText = 'ping';
} else{
chrome.runtime.sendMessage({action: 'ping'},function(response) {
$game.innerText = response;
});
}
}, 1000);