OrcaSlicer-bambulab/resources/web/guide/0/load.js
Louis Rossmann c661ddc2eb
Some checks failed
My Build All / build_windows (push) Has been cancelled
My Build All / build_linux_portable (push) Has been cancelled
My Build All / build_linux_appimage (push) Has been cancelled
My Build All / build_macos (push) Has been cancelled
My Build All / Publish release assets (push) Has been cancelled
Shellcheck / Shellcheck (push) Has been cancelled
Initial release
2026-05-11 07:39:33 -05:00

27 lines
No EOL
438 B
JavaScript

var TargetPage=null;
function OnInit()
{
TranslatePage();
TargetPage=GetQueryString("target");
// Fallback timeout in case the C++ -> JS signal fails (e.g., WebKit issues)
setTimeout("JumpToTarget()",20*1000);
}
function HandleStudio( pVal )
{
let strCmd=pVal['command'];
if(strCmd=='userguide_profile_load_finish')
{
JumpToTarget();
}
}
function JumpToTarget()
{
window.open('../'+TargetPage+'/index.html','_self');
}