diff --git a/js/artInfrastructure.js b/js/artInfrastructure.js index 23ed5bea12df4c2f27e169e776ac162e2da982f3..f3df7232e0fa5739205f9e665338a17723c30100 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) {