From 555eb4c68272f7ae94dca89b39c66761233ab666 Mon Sep 17 00:00:00 2001 From: ciphertxt Date: Thu, 17 Mar 2016 09:39:47 -0400 Subject: [PATCH] Set script src to the host web Set's the script src to the host web by default instead of the site collection. (Issue #8) --- dist/configure-page.aspx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/configure-page.aspx b/dist/configure-page.aspx index 4e903df..552b64b 100644 --- a/dist/configure-page.aspx +++ b/dist/configure-page.aspx @@ -226,7 +226,7 @@ "var link1 = document.createElement('link');", "link1.type = 'text/css';", "link1.rel = 'stylesheet';", - "link1.href = '" + hostsiteurl + "/" + srcurl + "';", + "link1.href = '" + hostweburl + "/" + srcurl + "';", (srcid ? "link1.id = '" + srcid + "';" : ""), "head1.appendChild(link1);", "})();" @@ -239,7 +239,7 @@ "var head1 = document.getElementsByTagName('head')[0];", "var script1 = document.createElement('script');", "script1.type = 'text/javascript';", - "script1.src = '" + hostsiteurl + "/" + srcurl + "';", + "script1.src = '" + hostweburl + "/" + srcurl + "';", "script1.id = '" + srcid + "';", "head1.appendChild(script1);", "})();"