2023-04-03 11:04:31 +08:00

21 lines
416 B
JavaScript

/*
* Based on:
* https://github.com/valyard/UnityWebGLOpenLink
*/
var OpenWindowPlugin = {
openWindow: function(link)
{
var url = Pointer_stringify(link);
var func = function()
{
window.open(url);
document.removeEventListener('mouseup', func);
}
document.addEventListener('mouseup', func);
}
};
mergeInto(LibraryManager.library, OpenWindowPlugin);