convert mih web app from JS to WASm

This commit is contained in:
yaso 2026-07-09 12:02:58 +02:00
parent eb213b01b6
commit f9c71b656e
17 changed files with 78 additions and 127 deletions

View file

@ -0,0 +1,13 @@
import 'package:web/web.dart' as web;
void openWebWindow(String url, [String? target]) {
if (target != null) {
web.window.open(url, target);
} else {
web.window.open(url);
}
}
bool isWebStandalone() {
return web.window.matchMedia('(display-mode: standalone)').matches;
}