mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-12 19:11:43 +00:00
Move background action console.log inside platforms check (#9891)
* Move background action log inside platforms check * Add change note for #9891 * Shorten change note * Release notes: move #9891 from 5.4.1 to 5.5.0 PR #9891 is still open, so the background-action log change is planned for 5.5.0 instead of 5.4.1. * Fix change-category for #9891 release note is not a valid category; use instead.
This commit is contained in:
@@ -78,7 +78,6 @@ class BackgroundActionTracker {
|
||||
fnProcess: (changes) => {
|
||||
if(this.hasChanged) {
|
||||
this.hasChanged = false;
|
||||
console.log("Processing background action", this.title);
|
||||
const tiddler = this.wiki.getTiddler(this.title);
|
||||
let doActions = true;
|
||||
if(tiddler && tiddler.fields.platforms) {
|
||||
@@ -89,6 +88,7 @@ class BackgroundActionTracker {
|
||||
}
|
||||
}
|
||||
if(doActions) {
|
||||
console.log("Processing background action", this.title);
|
||||
this.wiki.invokeActionString(
|
||||
this.actions,
|
||||
null,
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
title: $:/changenotes/5.5.0/#9891
|
||||
description: Move background action log inside platforms check to avoid spurious server-side logs
|
||||
release: 5.5.0
|
||||
tags: $:/tags/ChangeNote
|
||||
change-type: bugfix
|
||||
change-category: internal
|
||||
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9891
|
||||
github-contributors: linonetwo
|
||||
|
||||
Background actions with `platforms: browser` were logging on the server even though execution was correctly skipped. The log now only prints when the action actually runs.
|
||||
Reference in New Issue
Block a user