| 123456789101112131415161718192021 |
- /*
- * 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);
|