JS code doesn't work with advanced minify, while there are standard construct 3 functions there

0 favourites
  • 2 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hello, i have this code

    runtime.CanvasManager.prototype.GetDocumentFullscreenMode = function () {return "scale-outer";}.

    It works as it should, but if I export the game with adavanced minify it stops working. I've tried all options, I've tried replacing runtime with c3, I've tried uncompressing some parts of the code, I've tried completely uncompressing the whole line of code, but it doesn't work.

    My options are:

    ['runtime.CanvasManager.prototype.GetDocumentFullscreenMode = function () {return "scale-outer";}']

    runtime['CanvasManager.prototype.GetDocumentFullscreenMode = function () {return "scale-outer";}']]

    runtime.CanvasManager.GetDocumentFullscreenMode = function () {return "scale-outer";}']

    ['runtime.CanvasManager.GetDocumentFullscreenMode = function () {return "scale-outer";}']

    runtime['CanvasManager.prototype.GetDocumentFullscreenMode = function () {return scale-outer;}']

    And about 10 other combinations. Nothing works

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • That's strange looking code and doesn't appear to relate to any documented API. See the scripting reference for the methods and properties you can use.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)