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