]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
toolkit: fix noisy ext warning of feature we do not want/use
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 10 Dec 2021 12:22:25 +0000 (13:22 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 10 Dec 2021 12:23:02 +0000 (13:23 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Toolkit.js

index 33b701596bc568ef045837a7b9eda1ab77ad7e79..3d0eefcfbf6512eda18364a59668721f1a8cb6b1 100644 (file)
@@ -195,6 +195,16 @@ Ext.define('PVE.form.field.Number', {
     submitLocaleSeparator: false,
 });
 
+// avois spamming the console and if we ever use this avoid a CORS block error too
+Ext.define('PVE.draw.Container', {
+    override: 'Ext.draw.Container',
+    defaultDownloadServerUrl: document.location.origin, // avoid that pointing to http://svg.sencha.io
+    applyDownloadServerUrl: function(url) { // avoid noisy warning, we don't really use that anyway
+       url = url || this.defaultDownloadServerUrl;
+       return url;
+    },
+});
+
 // ExtJs 5-6 has an issue with caching
 // see https://www.sencha.com/forum/showthread.php?308989
 Ext.define('Proxmox.UnderlayPool', {