Skip to content

Commit 2c92be0

Browse files
committed
1 parent a315fed commit 2c92be0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## v0.3.7 2024-11
44

5+
* [Add plugin util `platformUtils`](https://github.com/siyuan-note/siyuan/issues/12930)
56
* [Add plugin function `getAllEditor`](https://github.com/siyuan-note/siyuan/issues/12884)
67
* [Add plugin function `getModelByDockType`](https://github.com/siyuan-note/siyuan/issues/11782)
78
* [Replace `any` in IProtyle with the corresponding type](https://github.com/siyuan-note/petal/issues/34)

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
lockScreen,
1919
ICard,
2020
ICardData,
21-
Custom, exitSiYuan, getModelByDockType, getAllEditor, Files
21+
Custom, exitSiYuan, getModelByDockType, getAllEditor, Files, platformUtils
2222
} from "siyuan";
2323
import "./index.scss";
2424

@@ -384,7 +384,7 @@ export default class PluginSample extends Plugin {
384384
icon: "iconFace",
385385
title: "Custom Tab",
386386
data: {
387-
text: "This is my custom tab",
387+
text: platformUtils.isHuawei() ? "Hello, Huawei!" : "This is my custom tab",
388388
},
389389
id: this.name + TAB_TYPE
390390
},

0 commit comments

Comments
 (0)