diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/CommandLoadNomadHelper.as b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/CommandLoadNomadHelper.as
new file mode 100644
index 0000000..531a716
--- /dev/null
+++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/CommandLoadNomadHelper.as
@@ -0,0 +1,41 @@
+package controller
+{
+ import model.proxy.login.ProxyLogin;
+
+ import org.puremvc.as3.multicore.interfaces.INotification;
+ import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
+ import org.apache.royale.utils.js.loadJavascript;
+ import org.apache.royale.net.HTTPService;
+ import org.apache.royale.net.beads.CORSCredentialsBead;
+ import org.apache.royale.net.events.FaultEvent;
+ import org.apache.royale.net.HTTPHeader;
+
+ public class CommandLoadNomadHelper extends SimpleCommand
+ {
+ override public function execute(note:INotification):void
+ {
+ /*window['fetch']("https://nomadweb.venus.startcloud.com/nomad/nomadhelper.js", { mode: 'cors' }).then(function(res:Object):Object {
+ return {};
+ }).catch(function(err:Object):void {
+
+ });*/
+
+ /*loadJavascript("https://nomadweb.venus.startcloud.com/nomad/nomadhelper.js", function():void {
+
+ });*/
+ window['openLink']("Some");
+ /*var service:HTTPService = new HTTPService();
+ service.addBead(new CORSCredentialsBead(true));
+ service.url = "https://nomadweb.venus.startcloud.com/nomad/nomadhelper.js?openLink&link='Some'";
+
+ service.method = "GET";
+ service.addEventListener("complete", function(event:Event):void {
+ var e:Event = event;
+ });
+ service.addEventListener("ioError", function(event:FaultEvent):void {
+ var f:FaultEvent = event;
+ });
+ service.send();*/
+ }
+ }
+}
\ No newline at end of file
diff --git a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/CommandPostStartup.as b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/CommandPostStartup.as
index dc7c9d2..736059e 100644
--- a/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/CommandPostStartup.as
+++ b/Super.Human.Portal_Royale/src/net/apacheRoyaleTemplatedApp/controller/startup/CommandPostStartup.as
@@ -3,6 +3,7 @@ package controller.startup
import controller.CommandVersionCheck;
import org.puremvc.as3.multicore.patterns.command.MacroCommand;
+ import controller.CommandLoadNomadHelper;
public class CommandPostStartup extends MacroCommand
{
@@ -12,6 +13,7 @@ package controller.startup
override protected function initializeMacroCommand() :void
{
addSubCommand(CommandVersionCheck);
+ addSubCommand(CommandLoadNomadHelper);
}
}
}
diff --git a/Super.Human.Portal_Royale/src/resources/jewel-index-template.html b/Super.Human.Portal_Royale/src/resources/jewel-index-template.html
index 8fa7e89..1c119e6 100644
--- a/Super.Human.Portal_Royale/src/resources/jewel-index-template.html
+++ b/Super.Human.Portal_Royale/src/resources/jewel-index-template.html
@@ -31,6 +31,7 @@
+
${head}
diff --git a/Super.Human.Portal_Royale/src/resources/nomadhelper.js b/Super.Human.Portal_Royale/src/resources/nomadhelper.js
new file mode 100644
index 0000000..9c825c9
--- /dev/null
+++ b/Super.Human.Portal_Royale/src/resources/nomadhelper.js
@@ -0,0 +1,7 @@
+function openLink(link) {
+ Console.log("My test link " + link);
+}
+
+/*const urlParams = new URLSearchParams(window.location.search);
+const myParam = urlParams.get('link');
+openLink(myParam);*/
\ No newline at end of file