mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-02 01:29:42 -06:00
62 lines
1.8 KiB
HTML
62 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--
|
|
If you are serving your web app in a path other than the root, change the
|
|
href value below to reflect the base path you are serving from.
|
|
|
|
The path provided below has to start and end with a slash "/" in order for
|
|
it to work correctly.
|
|
|
|
For more details:
|
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
|
|
|
|
This is a placeholder for base href that will be replaced by the value of
|
|
the `--base-href` argument provided to `flutter build`.
|
|
-->
|
|
<base href="$FLUTTER_BASE_HREF">
|
|
|
|
<meta charset="UTF-8">
|
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
<meta name="description" content="Self-hosted file storage">
|
|
|
|
<!-- iOS meta tags & icons -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-title" content="phylum">
|
|
|
|
<link rel="apple-touch-icon" sizes="192x192" href="icons/icon-192.png">
|
|
<link rel="icon" type="image/png" sizes="192x192" href="icons/icon-192.png">
|
|
<link rel="icon" type="image/png" sizes="512x512" href="icons/icon-512.png">
|
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
|
|
<title>Phylum</title>
|
|
<link rel="manifest" href="manifest.json">
|
|
</head>
|
|
<body oncontextmenu="return false;">
|
|
<script>
|
|
const channel = new BroadcastChannel("the_one");
|
|
var primary = true;
|
|
|
|
channel.onmessage = (event) => {
|
|
if (event.data == 'ping' && primary) {
|
|
channel.postMessage('pong');
|
|
}
|
|
if (event.data == 'pong') {
|
|
primary = false;
|
|
}
|
|
};
|
|
channel.postMessage("ping");
|
|
|
|
function setPrimary(value) {
|
|
primary = value;
|
|
}
|
|
|
|
function isPrimary() {
|
|
return primary;
|
|
}
|
|
</script>
|
|
<script src="flutter_bootstrap.js" async></script>
|
|
</body>
|
|
</html>
|