Skip to content

Commit

Permalink
Fix @parcel/watcher dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hpehl committed Oct 10, 2024
1 parent 3dbd45b commit 45aa31d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion op/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"optionalDependencies": {
"@parcel/watcher-linux-x64-glibc": "^2.4.1",
"@swc/core-linux-x64-gnu": "^1.7.28"
"@swc/core-linux-x64-gnu": "^1.7.28",
"lightningcss-linux-x64-gnu": "^1.27.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ class EndpointStorage {
private final Map<String, Endpoint> endpoints;
private final Storage storage;

@SuppressWarnings("unchecked")
EndpointStorage() {
this.endpoints = new HashMap<>();
this.storage = WebStorageWindow.of(window).localStorage;
String payload = storage.getItem(Ids.ENDPOINTS);
if (payload != null && !payload.isEmpty()) {
//noinspection unchecked
JsArray<Endpoint> eps = (JsArray<Endpoint>) JSON.parse(payload);
for (int i = 0; i < eps.length; i++) {
endpoints.put(eps.getAt(i).id, eps.getAt(i));
Expand Down

0 comments on commit 45aa31d

Please sign in to comment.