R
rbfraphael
Guest
Hi!
Recently, I need to open the Inspector in HTML5 to analyze my game, but the context menu is disabled by the game's JS file. You need to find
in the game's JS file and replace it by anything other (like a simple
) to enable the context menu.
- PROBLEM -
No context menu enabled on HTML5 export module.
- SOLUTION (COMPLEX AND MUCH RISK) -
Edit the game's JS file and replace
to some null JS code (like
).
- SUGGESTION TO YOYO GAMES -
Create a checkbox in the HTML tab on GGS to enable or disable the context menu (right mouse button).
Thanks
Recently, I need to open the Inspector in HTML5 to analyze my game, but the context menu is disabled by the game's JS file. You need to find
Code:
document.body.oncontextmenu=function(){return !1}
Code:
/*NULL*/
- PROBLEM -
No context menu enabled on HTML5 export module.
- SOLUTION (COMPLEX AND MUCH RISK) -
Edit the game's JS file and replace
Code:
document.body.oncontextmenu=function(){return !1}
Code:
/*NULL*/
- SUGGESTION TO YOYO GAMES -
Create a checkbox in the HTML tab on GGS to enable or disable the context menu (right mouse button).
Thanks