From 5199914627c7c356c49bbf6552f100d6890b18ae Mon Sep 17 00:00:00 2001 From: toan Date: Thu, 11 Nov 2021 11:33:14 +0100 Subject: [PATCH] Stop hardcoding toolforge --- public_html/resources/vue/shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/resources/vue/shared.js b/public_html/resources/vue/shared.js index bfc07ec..b7a7008 100644 --- a/public_html/resources/vue/shared.js +++ b/public_html/resources/vue/shared.js @@ -7,7 +7,7 @@ let vue_components = { toolname : window.location.pathname.replace(/(\/|\.php|\.html{0,1})+$/,'').replace(/^.*\//,'') , // Guessing tool name, override if necessary! components : {} , template_container_base_id : 'vue_component_templates' , - components_base_url : 'https://tools-static.wmflabs.org/magnustools/resources/vue/' , + components_base_url : 'magnustools/resources/vue/' , loadComponents : function ( components ) { return Promise.all ( components.map ( component => this.fetchComponent ( component ) ) ) .then (fetched => fetched.map( (html, i) => this.injectComponent ( components[i], html ) ) );