Skip to content

Commit aa91d5c

Browse files
mnaoumovsigrunixia
andauthored
docs: use sync onunload in examples (#221)
* docs: use sync onunload in examples Refactor the onunload method to remove the async keyword. * Adding one more that was missed --------- Co-authored-by: Sigrunixia <sigrunixia@tenebrousdragon.com>
1 parent 55b9fc1 commit aa91d5c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

en/Plugins/Getting started/Anatomy of a plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default class ExamplePlugin extends Plugin {
77
async onload() {
88
// Configure resources needed by the plugin.
99
}
10-
async onunload() {
10+
onunload() {
1111
// Release any resources configured by the plugin.
1212
}
1313
}
@@ -33,7 +33,7 @@ export default class ExamplePlugin extends Plugin {
3333
async onload() {
3434
console.log('loading plugin')
3535
}
36-
async onunload() {
36+
onunload() {
3737
console.log('unloading plugin')
3838
}
3939
}

en/Plugins/User interface/Views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class ExamplePlugin extends Plugin {
6060
});
6161
}
6262

63-
async onunload() {
63+
onunload() {
6464
}
6565

6666
async activateView() {

0 commit comments

Comments
 (0)