2022-01-05 17:59:59 +00:00
|
|
|
<!-- Copyright 2019-2022 Signal Messenger, LLC -->
|
2020-10-30 20:34:04 +00:00
|
|
|
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
|
|
|
|
|
2019-12-17 20:25:57 +00:00
|
|
|
<!-- prettier-ignore -->
|
2020-02-07 19:07:22 +00:00
|
|
|
<link rel="stylesheet" href="../stylesheets/manifest.css" />
|
2022-06-08 22:00:32 +00:00
|
|
|
<link
|
|
|
|
href="../node_modules/@indutny/frameless-titlebar/dist/styles.css"
|
|
|
|
rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
/>
|
2020-09-24 15:11:38 +00:00
|
|
|
<script>
|
2022-07-05 16:44:53 +00:00
|
|
|
// eslint-disable-next-line
|
|
|
|
const noop = () => {};
|
|
|
|
|
2021-09-17 21:54:41 +00:00
|
|
|
window.SignalWindow = window.SignalWindow || {};
|
|
|
|
window.SignalWindow.log = {
|
2020-09-24 15:11:38 +00:00
|
|
|
fatal: console.error.bind(console),
|
|
|
|
error: console.error.bind(console),
|
|
|
|
warn: console.warn.bind(console),
|
|
|
|
info: console.info.bind(console),
|
|
|
|
debug: console.debug.bind(console),
|
|
|
|
trace: console.trace.bind(console),
|
|
|
|
};
|
2022-06-08 22:00:32 +00:00
|
|
|
window.SignalContext = {
|
2022-07-05 16:44:53 +00:00
|
|
|
activeWindowService: {
|
|
|
|
isActive: () => true;
|
|
|
|
registerForActive: noop,
|
|
|
|
unregisterForActive: noop,
|
|
|
|
registerForChange: noop,
|
|
|
|
unregisterForChange: noop,
|
|
|
|
},
|
|
|
|
|
2022-06-08 22:00:32 +00:00
|
|
|
nativeThemeListener: {
|
|
|
|
getSystemValue: async () => 'light',
|
2022-07-05 16:44:53 +00:00
|
|
|
subscribe: noop,
|
|
|
|
unsubscribe: noop,
|
2022-06-08 22:00:32 +00:00
|
|
|
},
|
|
|
|
Settings: {
|
|
|
|
themeSetting: {
|
|
|
|
getValue: async () => 'light',
|
|
|
|
},
|
2022-07-05 16:44:53 +00:00
|
|
|
waitForChange: noop,
|
2022-06-08 22:00:32 +00:00
|
|
|
},
|
2022-06-15 18:21:03 +00:00
|
|
|
OS: {
|
2022-07-05 16:44:53 +00:00
|
|
|
hasCustomTitleBar: () => false,
|
2022-06-15 18:21:03 +00:00
|
|
|
},
|
2022-06-08 22:00:32 +00:00
|
|
|
};
|
2021-06-23 18:18:47 +00:00
|
|
|
</script>
|