From db2bce7594c99e72a3e4fe830c1272984d106873 Mon Sep 17 00:00:00 2001 From: slow-groovin <136044792+slow-groovin@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:40:02 +0800 Subject: [PATCH] change main class name. --- README.md | 2 ++ main.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 87f9d64..4d417aa 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ After installing and activating the plugin: Click the button in the sidebar to toggle between disguise mode and normal mode. ## Not Supported: +- Reading view. - Command-based control. - Defining styles in settings (styles can only be adjusted directly by editing the `styles.css` file in the plugin directory). @@ -30,5 +31,6 @@ Click the button in the sidebar to toggle between disguise mode and normal mode. 安装并开启插件后, 点击侧边栏中的按钮, 控制伪装/恢复正常 ## 不支持: +- 阅读视图 - 命令方式控制 - 在setting中定义样式(只能直接修改插件目录中的styles.css进行样式调整) diff --git a/main.ts b/main.ts index 91cd935..2f2ca04 100644 --- a/main.ts +++ b/main.ts @@ -4,7 +4,7 @@ import { App, ItemView,WorkspaceTabs,WorkspaceLeaf ,Editor, MarkdownView, Markdo -export default class MyPlugin extends Plugin { +export default class SimpleDisguisePlugin extends Plugin { private styleEnabled: boolean = false; async onload() { console.log('onload')