Skip to content

Commit 98a07df

Browse files
committed
change generic app open to use an anura dialog instead of a regular alert
1 parent 875e1b1 commit 98a07df

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

public/anura-sw.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ workbox.core.clientsClaim();
8585
importScripts("/libs/idb-keyval/idb-keyval.js");
8686

8787
var cacheenabled;
88-
workbox.routing.registerRoute(/\/x86\/(.*)/, (req) => {
89-
return handleRequests(req); // need to do this because of the dumb way workbox handles async
90-
});
9188

9289
const callbacks = {};
9390
const filepickerCallbacks = {};

src/coreapps/GenericApp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GenericApp extends App {
88
}
99

1010
async open(args: string[] = []): Promise<WMWindow | undefined> {
11-
alert(
11+
anura.dialog.alert(
1212
"This app is not supposed to be opened as it is a placeholder for other apps.",
1313
);
1414
return;

0 commit comments

Comments
 (0)