|
@@ -57,14 +57,6 @@ export const about = {
|
|
|
<div class="fn__space"></div>
|
|
|
<input class="b3-switch fn__flex-center" id="networkServe" type="checkbox"${window.siyuan.config.system.networkServe ? " checked" : ""}>
|
|
|
</label>
|
|
|
-<label class="b3-label fn__flex">
|
|
|
- <div class="fn__flex-1">
|
|
|
- ${window.siyuan.languages.useFixedPort}
|
|
|
- <div class="b3-label__text">${window.siyuan.languages.useFixedPortTip}</div>
|
|
|
- </div>
|
|
|
- <div class="fn__space"></div>
|
|
|
- <input class="b3-switch fn__flex-center" id="fixedPort" type="checkbox"${window.siyuan.config.system.fixedPort ? " checked" : ""}>
|
|
|
-</label>
|
|
|
<label class="b3-label${isBrowser() ? " fn__none" : " fn__flex"}">
|
|
|
<div class="fn__flex-1">
|
|
|
${window.siyuan.languages.about2}
|
|
@@ -369,14 +361,6 @@ export const about = {
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
- const fixedPortElement = about.element.querySelector("#fixedPort") as HTMLInputElement;
|
|
|
- fixedPortElement.addEventListener("change", () => {
|
|
|
- fetchPost("/api/system/setFixedPort", {fixedPort: fixedPortElement.checked}, () => {
|
|
|
- exportLayout(false, () => {
|
|
|
- exitSiYuan();
|
|
|
- });
|
|
|
- });
|
|
|
- });
|
|
|
const googleAnalyticsElement = about.element.querySelector("#googleAnalytics") as HTMLInputElement;
|
|
|
googleAnalyticsElement.addEventListener("change", () => {
|
|
|
fetchPost("/api/system/setGoogleAnalytics", {googleAnalytics: googleAnalyticsElement.checked}, () => {
|