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:

    	<script>
    	// Issue a warning if trying to preview an exported project on disk.
    	(function(){
    		// 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.)");
    		}
    	})();
    	</script>[/code:32cc0cih]
    
    Remember that the warning is there for a reason. Certain functionality is unlikely to work correctly when ran locally.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    What a quick help. Thanks!

    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 ?

    Thanks.

    Mat

    Well, that doesn't seem to work with the latest version of chrome.

    The warning does not appear but the game does not start, the screen remains black.

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