Changed Eruda default theming
This commit is contained in:
parent
cb934dba31
commit
ec5aa81092
1 changed files with 6 additions and 1 deletions
|
|
@ -97,7 +97,12 @@ export function IframeHeader(props: { url: string }) {
|
||||||
script.src = "https://cdn.jsdelivr.net/npm/eruda";
|
script.src = "https://cdn.jsdelivr.net/npm/eruda";
|
||||||
script.onload = function () {
|
script.onload = function () {
|
||||||
if (!proxyWindow) return;
|
if (!proxyWindow) return;
|
||||||
proxyWindow.eruda.init();
|
proxyWindow.eruda.init({
|
||||||
|
defaults: {
|
||||||
|
displaySize: 45,
|
||||||
|
theme: 'Material Palenight'
|
||||||
|
}
|
||||||
|
});
|
||||||
proxyWindow.eruda.show();
|
proxyWindow.eruda.show();
|
||||||
};
|
};
|
||||||
proxyDocument.head.appendChild(script);
|
proxyDocument.head.appendChild(script);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue