diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index c5e11312e..f459a5cab 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -305,4 +305,46 @@ document.querySelectorAll('[data-link-loading]').forEach((href) => { this.querySelector('[data-link-text]').classList.remove('opacity-1'); }); }); -//Loading scenario for href links \ No newline at end of file +//Loading scenario for href links + +//Firefox show modal for icon set +if (navigator.userAgent.search("Firefox") >= 0) { + let firefoxCookie = document.createElement('DIV'), + body = document.body; + firefoxCookie.innerHTML = + '' + + + + body.appendChild(firefoxCookie); + + function delete_cookie(){ + document.cookie = 'firefoxCookieModal=true; expires=Thu, 1 Jan 2023 00:00:01 GMT;'; + document.querySelector('[data-cookie-modal]').remove(); + } + + if (document.cookie.indexOf('firefoxCookieModal=true') !== -1) { + document.querySelector('[data-cookie-modal]').remove(); + } +} +//Firefox show modal for icon set \ No newline at end of file