Hiding review reminder once store link is clicked
parent
047afc323a
commit
599e863346
|
@ -283,13 +283,13 @@
|
||||||
<div id="notificationBanner">
|
<div id="notificationBanner">
|
||||||
Enjoying Indie Wiki Buddy? Please leave a review!
|
Enjoying Indie Wiki Buddy? Please leave a review!
|
||||||
<br />
|
<br />
|
||||||
<a target="_blank" href="https://chrome.google.com/webstore/detail/indie-wiki-buddy/fkagelmloambgokoeokbpihmgpkbgbfm">Chrome</a>
|
<a id="reviewReminderChromeLink" target="_blank" href="https://chrome.google.com/webstore/detail/indie-wiki-buddy/fkagelmloambgokoeokbpihmgpkbgbfm">Chrome</a>
|
||||||
|
|
|
|
||||||
<a target="_blank" href="https://addons.mozilla.org/en-US/firefox/addon/indie-wiki-buddy/">Firefox</a>
|
<a id="reviewReminderFirefoxLink" target="_blank" href="https://addons.mozilla.org/en-US/firefox/addon/indie-wiki-buddy/">Firefox</a>
|
||||||
|
|
|
|
||||||
<a id="hideReviewReminderLink" href="#">Hide this message</a>
|
<a id="reviewReminderHideLink" href="#">Hide this message</a>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
Having issues or ideas for improvement? Please <a href="https://getindie.wiki/#contact">contact me</a>!
|
Having issues or ideas for improvement? Please <a target="_blank" href="https://getindie.wiki/#contact">contact me</a>!
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>Global settings</h2>
|
<h2>Global settings</h2>
|
||||||
|
|
10
settings.js
10
settings.js
|
@ -456,8 +456,14 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
if (!item.hideReviewReminder && ((countSettingsOpened - 1) % 5 === 0)) {
|
if (!item.hideReviewReminder && ((countSettingsOpened - 1) % 5 === 0)) {
|
||||||
document.getElementById('notificationBanner').style.display = 'block';
|
document.getElementById('notificationBanner').style.display = 'block';
|
||||||
|
|
||||||
// Hide review reminder if user clicks 'hide' link:
|
// Disable future review reminders if user clicks links:
|
||||||
document.getElementById('hideReviewReminderLink').addEventListener('click', function () {
|
document.getElementById('reviewReminderChromeLink').addEventListener('click', function () {
|
||||||
|
chrome.storage.local.set({ 'hideReviewReminder': true });
|
||||||
|
});
|
||||||
|
document.getElementById('reviewReminderFirefoxLink').addEventListener('click', function () {
|
||||||
|
chrome.storage.local.set({ 'hideReviewReminder': true });
|
||||||
|
});
|
||||||
|
document.getElementById('reviewReminderHideLink').addEventListener('click', function () {
|
||||||
chrome.storage.local.set({ 'hideReviewReminder': true });
|
chrome.storage.local.set({ 'hideReviewReminder': true });
|
||||||
document.getElementById('notificationBanner').style.display = 'none';
|
document.getElementById('notificationBanner').style.display = 'none';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue