mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Fix several cases of errors appearing in the console
One appeared on load (a deprecated meta tag). One appeared when adding an Identity (Passthrough) node. One appeared when exposing the the Weight parameter of the Stroke node. This also fixes the intended behavior of the bisect script, which was involved when finding the prevenance of these errors.
This commit is contained in:
@@ -369,6 +369,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
// Exists at starting commit, so it was introduced earlier. Search backward (doubling).
|
||||
badIndex = currentIndex;
|
||||
boundarySearching = true;
|
||||
boundaryOffset = Math.max(1, commits.length - 1 - startIndex);
|
||||
} else {
|
||||
// Absent at starting commit, so the issue was introduced more recently. Extend the commit list forward (towards HEAD) before narrowing.
|
||||
goodIndex = currentIndex;
|
||||
@@ -558,7 +559,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
stepCount = 0;
|
||||
history = [];
|
||||
bisectPhase = "boundary";
|
||||
boundaryOffset = 1;
|
||||
boundaryOffset = 0;
|
||||
boundarySearching = false;
|
||||
elements.goBackButton?.classList.remove("hidden");
|
||||
if (elements.testBuildButton instanceof HTMLElement) elements.testBuildButton.style.display = "";
|
||||
|
||||
Reference in New Issue
Block a user