diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-02-17 10:23:58 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-02-17 10:24:31 +0100 |
| commit | 79046baf4668e18661aaeb96c5fc014912f63714 (patch) | |
| tree | 2fb25aec6ce891971496e40faa14116e4b028b09 /src | |
| parent | 3754edbd272a16e0939204bce21aa85d5f13714a (diff) | |
Add safety check for stylesheet href1.0.3
Diffstat (limited to 'src')
| -rw-r--r-- | src/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.js b/src/client.js index 7c0de4a..4610a16 100644 --- a/src/client.js +++ b/src/client.js @@ -25,7 +25,7 @@ const internals = { const oidcSecurity = { async setup() { const hasStyleSheet = [...document.styleSheets].some((styleSheet) => - styleSheet.href.endsWith(internals.kStyleSheet), + styleSheet?.href?.endsWith(internals.kStyleSheet), ); if (!hasStyleSheet) { |