Unity WebGL login issue

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.

Thanks for the help!

could you please post a development-build stacktrace?

Hi Marco, thanks for answering,
Hope this can help:

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 (Nueva carpeta.asm.framework.unityweb:1154:12)
stackTrace (Nueva carpeta.asm.framework.unityweb:1168:11)
abort (Nueva carpeta.asm.framework.unityweb:21144:43)
_abort (Nueva carpeta.asm.framework.unityweb:8932:2)
_free (Nueva carpeta.asm.code.unityweb:431910:1)
__ZN6il2cpp2os12MarshalAlloc4FreeEPv (Nueva carpeta.asm.code.unityweb:2101192:1)
__ZN6il2cpp2vm12MarshalAlloc4FreeEPv (Nueva carpeta.asm.code.unityweb:2088421:1)
__ZN6il2cpp2vm14PlatformInvoke11MarshalFreeEPv (Nueva carpeta.asm.code.unityweb:2070251:1)
_journeys_getIdJourney_m548968176 (Nueva carpeta.asm.code.unityweb:1981743:1)
_U3CStartU3Ec__Iterator0_MoveNext_m2200719322 (Nueva carpeta.asm.code.unityweb:277477:1)
__ZN21InterfaceFuncInvoker0IbE6InvokeEjP11Il2CppClassP12Il2CppObject (Nueva carpeta.asm.code.unityweb:1456709:1)
_SetupCoroutine_InvokeMoveNext_m2975616245 (Nueva carpeta.asm.code.unityweb:1498295:1)
_Z53RuntimeInvoker_Void_t1841601450_Il2CppObject_IntPtr_tPK10MethodInfoPvPS2 (Nueva carpeta.asm.code.unityweb:1833277:1)
dynCall_iiii (Nueva carpeta.asm.code.unityweb:2054395:1)
invoke_iiii (Nueva carpeta.asm.framework.unityweb:17921:10)
__ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (Nueva carpeta.asm.code.unityweb:1702569:1)
_il2cpp_runtime_invoke (Nueva carpeta.asm.code.unityweb:1942690:1)
__Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (Nueva carpeta.asm.code.unityweb:1808112:1)
__ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (Nueva carpeta.asm.code.unityweb:1169269:1)
__ZN9Coroutine14InvokeMoveNextEP21ScriptingExceptionPtr (Nueva carpeta.asm.code.unityweb:1366922:1)
__ZN9Coroutine3RunEPb (Nueva carpeta.asm.code.unityweb:1524265:1)
__ZN13MonoBehaviour24TryCreateAndRunCoroutineE18ScriptingObjectPtr18ScriptingMethodPtrPP9Coroutine (Nueva carpeta.asm.code.unityweb:713129:1)
__ZN13MonoBehaviour30InvokeMethodOrCoroutineCheckedE18ScriptingMethodPtr18ScriptingObjectPtr (Nueva carpeta.asm.code.unityweb:1152593:1)
__ZN13MonoBehaviour16DelayedStartCallEP6ObjectPv (Nueva carpeta.asm.code.unityweb:1450529:1)
__ZN18DelayedCallManager6UpdateEi (Nueva carpeta.asm.code.unityweb:648659:1)
__ZZ23InitPlayerLoopCallbacksvEN45EarlyUpdateScriptRunDelayedStartupFramestruct7ForwardEv (Nueva carpeta.asm.code.unityweb:2001602:1)
__Z10PlayerLoopv (Nueva carpeta.asm.code.unityweb:498832:1)
__ZL8MainLoopv (Nueva carpeta.asm.code.unityweb:1340835:1)
dynCall_v (Nueva carpeta.asm.code.unityweb:2104445:1)
browserIterationFunc (Nueva carpeta.asm.framework.unityweb:2393:4)
runIter (Nueva carpeta.asm.framework.unityweb:2495:5)
Browser_mainLoop_runner (Nueva carpeta.asm.framework.unityweb:2431:3)