mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
tooltip - get shortcut from its own attribute
This commit is contained in:
parent
f3a755976a
commit
c2640bcada
7 changed files with 155 additions and 92 deletions
3
main.js
3
main.js
|
|
@ -10,6 +10,9 @@ const TIME = DEBUG || !PRODUCTION;
|
|||
const WARN = true;
|
||||
const ERROR = true;
|
||||
|
||||
// detect device
|
||||
const MOBILE = window.innerWidth < 600 || navigator.userAgentData?.mobile;
|
||||
|
||||
if (PRODUCTION && "serviceWorker" in navigator) {
|
||||
window.addEventListener("load", () => {
|
||||
navigator.serviceWorker.register("./sw.js").catch(err => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue