4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00
This commit is contained in:
AlphaX-Projects 2022-03-17 14:05:28 +01:00 committed by GitHub
parent f9b870b75a
commit 27897db568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@
body {
margin: 0;
padding: 0;
background: background: var(--plugback);
background: var(--plugback);
overflow: hidden;
}
</style>
@ -66,6 +66,13 @@
<script>
const checkTheme = localStorage.getItem('qortalTheme')
if (checkTheme === 'dark') {
newtheme = 'dark';
} else {
newtheme = 'light';
}
document.querySelector('html').setAttribute('theme', newtheme);
const memory = new WebAssembly.Memory({ initial: 256, maximum: 256 });
const heap = new Uint8Array(memory.buffer);