2022-05-03 20:50:57 +02:00
|
|
|
'use strict'
|
|
|
|
import $ from 'jquery'
|
2019-06-08 17:20:51 +02:00
|
|
|
|
2022-05-03 20:50:57 +02:00
|
|
|
const G = window
|
|
|
|
const D = document
|
2019-06-08 17:20:51 +02:00
|
|
|
|
|
|
|
// remove browser default alerts
|
2022-05-03 20:50:57 +02:00
|
|
|
/* alert = function () {
|
2019-06-08 17:20:51 +02:00
|
|
|
console.log(arguments);
|
|
|
|
console.log(new Error().stack);
|
2022-05-03 20:50:57 +02:00
|
|
|
}; */
|
2019-06-08 17:20:51 +02:00
|
|
|
|
2022-05-03 20:50:57 +02:00
|
|
|
/* G.addEventListener(G.visibilityChangeEvent, () => {
|
2019-06-08 17:20:51 +02:00
|
|
|
if (currentPage && typeof currentPage !== 'undefined') {
|
|
|
|
if (
|
|
|
|
landingPage !== G.location.href &&
|
|
|
|
currentPage !== '/' &&
|
|
|
|
currentPage.indexOf('/dev') === -1 &&
|
|
|
|
!$('main>div').hasClass('type-ErrorPage')
|
|
|
|
) {
|
|
|
|
G.localStorage.setItem('current-page', G.location.href);
|
|
|
|
} else if (landingPage === G.location.href || currentPage.indexOf('/dev') !== -1) {
|
|
|
|
G.localStorage.removeItem('current-page');
|
|
|
|
}
|
|
|
|
}
|
2022-05-03 20:50:57 +02:00
|
|
|
}); */
|