Im having some problems trying to implement a webgl proyect. I have some JS code to manage the sessiontorage items i need. The session token and the JourneyID (to show in scene that specific “Journey”).
mergeInto(LibraryManager.library, { getIdJoureny: function (){ return sessionStorage.getItem(“idJourney”); }, getToken: function () { return sessionStorage.getItem(“token”); }, Hello: function () { window.alert("idJourney: “+ sessionStorage.getItem(“idJourney”) +”; mitoken: " + sessionStorage.getItem(“token”)); }, });
The problem is that if both items are null, it gives no error but if i give them valid values I get this error from the Mozilla browser:
An error occured running the Unity content on this page. See your browser JavaScript console for more info. The error was: uncaught exception: abort() at jsStackTrace (web-MI.asm.framework.unityweb:2:27465) stackTrace (web-MI.asm.framework.unityweb:2:27636) abort (web-MI.asm.framework.unityweb:4:33414) _abort (web-MI.asm.framework.unityweb:2:209168) yfp (web-MI.asm.code.unityweb:20:1) H9o (web-MI.asm.code.unityweb:20:1) xEo (web-MI.asm.code.unityweb:20:1) kTo (web-MI.asm.code.unityweb:20:1) Hsj (web-MI.asm.code.unityweb:9:1) Usj (web-MI.asm.code.unityweb:9:1) bAm (web-MI.asm.code.unityweb:4:1) Tcn (web-MI.asm.code.unityweb:7:1) CGl (web-MI.asm.code.unityweb:4:1) Htp (web-MI.asm.code.unityweb:26:1) invoke_iiii (web-MI.asm.framework.unityweb:2:389014) FCo (web-MI.asm.code.unityweb:20:1) QFo (web-MI.asm.code.unityweb:20:1) Vda (web-MI.asm.code.unityweb:10:1) Tda (web-MI.asm.code.unityweb:10:1) C7a (web-MI.asm.code.unityweb:18:1) z7a (web-MI.asm.code.unityweb:18:1) v7a (web-MI.asm.code.unityweb:18:1) s7a (web-MI.asm.code.unityweb:18:1) NWb (web-MI.asm.code.unityweb:14:1) kEb (web-MI.asm.code.unityweb:14:1) K1a (web-MI.asm.code.unityweb:18:1) wqa (web-MI.asm.code.unityweb:11:1) jqa (web-MI.asm.code.unityweb:11:1) itp (web-MI.asm.code.unityweb:26:1) browserIterationFunc (web-MI.asm.framework.unityweb:2:48193) runIter (web-MI.asm.framework.unityweb:2:51285) Browser_mainLoop_runner (web-MI.asm.framework.unityweb:2:49730) If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.