Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jun 23, 2023
1 parent 04fc545 commit dd097a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ export default class PluginSample extends Plugin {
});
new Protyle(this.app, dialog.element.querySelector("#protyle"), {
blockId: "20200812220555-lj3enxa",
})
});
fetchPost("/api/system/currentTime", {}, (response) => {
dialog.element.querySelector("#time").innerHTML = new Date(response.data).toString()
})
dialog.element.querySelector("#time").innerHTML = new Date(response.data).toString();
});
}

private addMenu(rect?: DOMRect) {
Expand All @@ -245,7 +245,7 @@ export default class PluginSample extends Plugin {
label: "Dialog(open help first)",
accelerator: this.commands[0].customHotkey,
click: () => {
this.showDialog()
this.showDialog();
}
});
if (!this.isMobile) {
Expand Down

0 comments on commit dd097a7

Please sign in to comment.