mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
simplify code
This commit is contained in:
parent
11bd48a1b5
commit
81e0c6dcc2
@ -408,14 +408,9 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
||||
isNewSceneVersion() {
|
||||
const sceneVersion = this.getSceneVersion();
|
||||
|
||||
if (
|
||||
this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update
|
||||
|| this.currentSceneVersion !== sceneVersion
|
||||
) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update
|
||||
|| this.currentSceneVersion !== sceneVersion // ensure scene changed
|
||||
;
|
||||
}
|
||||
|
||||
getSceneVersion() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user