Skip to content
Snippets Groups Projects
Commit d3ef057f authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Use EventTarget() from event-target-shim to fix Safari support

parent e2c8ae24
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
}, },
"dependencies": { "dependencies": {
"keycloak-js": "^8.0.0", "keycloak-js": "^8.0.0",
"lit-element": "^2.1.0" "lit-element": "^2.1.0",
"event-target-shim": "^5.0.1"
}, },
"scripts": { "scripts": {
"clean": "rm dist/*", "clean": "rm dist/*",
......
import {EventTarget} from "event-target-shim"; // Because EventTarget() doesn't exist on Safari
/** /**
* Wraps the keycloak API to support async/await, adds auto token refreshing and consolidates all * Wraps the keycloak API to support async/await, adds auto token refreshing and consolidates all
* events into one native "changed" event * events into one native "changed" event
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment