diff --git a/src/gui/src/UI/UIWindowPublishWebsite.js b/src/gui/src/UI/UIWindowPublishWebsite.js index 38bf2b5de..3e0ca3a81 100644 --- a/src/gui/src/UI/UIWindowPublishWebsite.js +++ b/src/gui/src/UI/UIWindowPublishWebsite.js @@ -36,8 +36,9 @@ async function UIWindowPublishWebsite(target_dir_uid, target_dir_name, target_di h += `
`; // subdomain h += ``; // uid h += ``; diff --git a/src/gui/src/helpers.js b/src/gui/src/helpers.js index 6ffd149a4..86aab6f0c 100644 --- a/src/gui/src/helpers.js +++ b/src/gui/src/helpers.js @@ -2224,6 +2224,10 @@ window.extractSubdomain = function(url) { return subdomain; } +window.extractProtocol = function (url) { + var protocol = url.split('://')[0]; + return protocol; +} window.sleep = function(ms){ return new Promise(resolve => setTimeout(resolve, ms)); }