How to remove warning "exported game won't work until..."

  • Hi,

    Could someone experienced help with this?

    I work on ClickJogos build and they need to remove bellow listed warning on thier platform. I am not sure how thier platform works but the warning is similar when you try run exported game localy and not from a server.

    Anybody familiar with ClickJogos and this issue?

    Here is the the warning:

    "Exported games won't work until you upload them...."

    Thank you

  • You just need to edit the exported index.html. Remove the following section:

    	// Issue a warning if trying to preview an exported project on disk.
    		// Check for running exported on file protocol
    		if (window.location.protocol.substr(0, 4) === "file")
    			alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
    Remember that the warning is there for a reason. Certain functionality is unlikely to work correctly when ran locally.
  • What a quick help. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks so much i try it for apple dev and i come back for tell u about

  • Thank you for this trick !

    Do you know which functionalities will not work correctly when ran locally ?



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