From 26ca57c029a63424dbbe68a81eec75675e2b3018 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Thu, 14 Jan 2021 16:24:17 -0800 Subject: [PATCH] Remove unused parameter and make the search pattern global. --- js/artInfrastructure.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/artInfrastructure.js b/js/artInfrastructure.js index 23ed5bea12d..f3df7232e0f 100644 --- a/js/artInfrastructure.js +++ b/js/artInfrastructure.js @@ -37,7 +37,7 @@ App.Art.cacheArtData = function() { App.Data.Art.VectorRevamp = makeCache(document.querySelectorAll('[tags="Twine.image"][name^="Art_Vector_Revamp"]')); }; -App.Art.URLIDMatcher = /url\(#(.*)\)/; +App.Art.URLIDMatcher = /url\(#(.*)\)/g; App.Art.SvgQueue = class { /** * @param {{trigger:string, action:string, value:string}[]} transformRules - when a 'data-transform' attribute with value "trigger" is seen on an element, perform 'action' with 'value' @@ -119,9 +119,8 @@ App.Art.SvgQueue = class { /** add an SVG from the cache to the render queue * @param {string} id - * @param {number} [rndID] - optional unique ID which identifies this specific art instance to make internal defs link correctly */ - add(id, rndID) { + add(id) { const res = this._cache.get(id); let clones = []; if (!res) { -- GitLab