We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f0acda commit af25985Copy full SHA for af25985
1 file changed
styles/all/template/includes/phpbb_ads_pop_up.html
@@ -7,7 +7,7 @@
7
const interval_days = 1;
8
const lastShown = localStorage.getItem(key);
9
10
- if (!lastShown || Date.now() - parseInt(lastShown, 10) >= interval_days * 86400000) {
+ if (!lastShown || Date.now() - +lastShown >= interval_days * 86400000) {
11
localStorage.setItem(key, Date.now());
12
window.addEventListener('load', () => {
13
phpbb.alert(
0 commit comments