Skip to content

Commit

Permalink
SUKU notification version feature added
Browse files Browse the repository at this point in the history
  • Loading branch information
SukuWc committed Oct 25, 2024
1 parent d152330 commit 9060231
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/renderer/main/ErrorConsole.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,19 @@
if (element.type === "error") {
solutions.push(element);
} else if (element.type === "notification") {
if (typeof element.delay !== "undefined") {
let delay = parseInt(element.delay);
setTimeout(() => {
if (
typeof element.version == "undefined" ||
element.version ===
window.ctxProcess.configuration()?.EDITOR_VERSION
) {
if (typeof element.delay !== "undefined") {
let delay = parseInt(element.delay);
setTimeout(() => {
notifications = [...notifications, element];
}, delay);
} else {
notifications = [...notifications, element];
}, delay);
} else {
notifications = [...notifications, element];
}
}
}
});
Expand Down

0 comments on commit 9060231

Please sign in to comment.