Added tips(resolves issue 388)

This commit is contained in:
aditya committed 2022-01-09 20:16:13 +05:30
1 parent e77cdeb2ed
commit 9d7c3b4869
3 files changed
+27 -7

No files matched your search

+12
View File
@@ -13,8 +13,14 @@ const config = {
donate: "https://returnyoutubedislike.com/donate",
faq: "https://returnyoutubedislike.com/faq",
},
tips: [
'If you have stopped seeing the dislike count, try disabling and re-enabling the plugin.'
]
};
/* Tips */
renderTip();
/* Links */
document.getElementById("link_website").addEventListener("click", () => {
chrome.tabs.create({ url: config.links.website });
@@ -114,6 +120,12 @@ function handleDisableVoteSubmissionChangeEvent(value) {
}
})();
function renderTip(){
document.getElementById('tips').innerText = config.tips[Math.floor(Math.random()*config.tips.length)];
}
/* popup-script.js
document.querySelector('#login')
.addEventListener('click', function () {