diff options
-rw-r--r-- | web/app/DeviceImages.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/DeviceImages.js b/web/app/DeviceImages.js index 502d412e..a05a8153 100644 --- a/web/app/DeviceImages.js +++ b/web/app/DeviceImages.js @@ -70,10 +70,10 @@ Ext.define('Traccar.DeviceImages', { encodeURIComponent(new XMLSerializer().serializeToString(svg.documentElement)); }, - cloneDocument: function (document) { + cloneDocument: function (svgDocument) { var newDocument, newNode; - newDocument = document.implementation.createDocument(document.namespaceURI, null, null); - newNode = newDocument.importNode(document.documentElement, true); + newDocument = svgDocument.implementation.createDocument(svgDocument.namespaceURI, null, null); + newNode = newDocument.importNode(svgDocument.documentElement, true); newDocument.appendChild(newNode); return newDocument; }, |