signal-desktop/.storybook/preview-head.html
2022-06-15 11:21:03 -07:00

37 lines
980 B
HTML

<!-- Copyright 2019-2022 Signal Messenger, LLC -->
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
<!-- prettier-ignore -->
<link rel="stylesheet" href="../stylesheets/manifest.css" />
<link
href="../node_modules/@indutny/frameless-titlebar/dist/styles.css"
rel="stylesheet"
type="text/css"
/>
<script>
window.SignalWindow = window.SignalWindow || {};
window.SignalWindow.log = {
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),
};
window.SignalContext = {
nativeThemeListener: {
getSystemValue: async () => 'light',
subscribe: () => {},
unsubscribe: () => {},
},
Settings: {
themeSetting: {
getValue: async () => 'light',
},
waitForChange: () => {},
},
OS: {
isWindows11: () => false,
},
};
</script>