@klodd/ds 3.14.1 → 3.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/js/pwa-register.js +0 -22
  2. package/package.json +1 -1
@@ -61,24 +61,6 @@
61
61
  });
62
62
  }
63
63
 
64
- /*------------------------------------------------------------
65
- Safe-area cold-start-fix (iOS PWA + Safari)
66
- iOS Safari beraknar env(safe-area-inset-bottom) felaktigt vid
67
- forsta render - .bottom-nav landar pa fel position. Att lasa
68
- computed style pa .bottom-nav tvingar WebKit att resolva
69
- env-varden i layout-passet, vilket retroaktivt korrigerar
70
- pilen-positionen.
71
-
72
- Trippel-event-binding tacker alla cold-start-cases:
73
- - DOMContentLoaded: tidigt efter document parsing
74
- - load: efter att alla resurser (font, splash, etc.) laddats
75
- - pageshow: iOS bfcache-restore (back/forward, switch tabs)
76
- ------------------------------------------------------------*/
77
- function forceSafeAreaOnNav() {
78
- const nav = doc.querySelector('.bottom-nav');
79
- if (nav) void getComputedStyle(nav).bottom;
80
- }
81
-
82
64
  /*------------------------------------------------------------
83
65
  Public API. Anvand KloddPWA.init({...}) FORE script-laddning av
84
66
  denna fil (sa _cfg ar satt nar getCfg() koras), eller bara lat
@@ -89,8 +71,4 @@
89
71
  root.KloddPWA.config = cfg;
90
72
 
91
73
  registerSW(cfg);
92
-
93
- doc.addEventListener('DOMContentLoaded', forceSafeAreaOnNav);
94
- root.addEventListener('load', forceSafeAreaOnNav);
95
- root.addEventListener('pageshow', forceSafeAreaOnNav);
96
74
  })(typeof window !== 'undefined' ? window : globalThis, document);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klodd/ds",
3
- "version": "3.14.1",
3
+ "version": "3.14.3",
4
4
  "description": "Klodd shared design system - tokens, components, JS",
5
5
  "main": "css/index.css",
6
6
  "bin": {