Skip to content

Commit 2dafa89

Browse files
When popup icon clicked 10 times open up game
1 parent e077c05 commit 2dafa89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

extras/popup/popup.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,3 +1385,15 @@ async function getCommit() {
13851385
)})`;
13861386
} catch (err) {}
13871387
}
1388+
1389+
1390+
var iconsclicks = 0;
1391+
1392+
document.querySelector(".searchbaricon")?.addEventListener("click", function () {
1393+
iconsclicks += 1;
1394+
if (iconsclicks > 9) {
1395+
chrome.tabs.create({
1396+
url: "chrome-extension://" + chrome.runtime.id + "/extras/game/index.html",
1397+
});
1398+
}
1399+
})

0 commit comments

Comments
 (0)