webpack-bootstrap-ui-kit/src/js_old/_components/_ui.visibility.js

27 lines
727 B
JavaScript
Raw Normal View History

2021-08-18 20:51:15 +02:00
"use strict";
import $ from "jquery";
2019-06-08 17:20:51 +02:00
const G = window;
const D = document;
// remove browser default alerts
/*alert = function () {
console.log(arguments);
console.log(new Error().stack);
};*/
/*G.addEventListener(G.visibilityChangeEvent, () => {
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');
}
}
2020-12-24 23:42:33 +01:00
});*/