chore: webui

This commit is contained in:
手瓜一十雪
2024-08-11 13:48:26 +08:00
parent aa12506221
commit 0b8dcbebe9
13 changed files with 63 additions and 86 deletions

View File

@@ -1,2 +1,13 @@
export const onSettingWindowCreated = (view) => {
export const onSettingWindowCreated = async (view) => {
view.style.width = "100%";
view.style.height = "100%";
//添加iframe
const iframe = document.createElement("iframe");
iframe.src = await window.napcat.getWebUiUrl();
iframe.width = "100%";
iframe.height = "100%";
iframe.style.border = "none";
//去掉iframe滚动条
iframe.scrolling = "no";
view.appendChild(iframe);
};