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

Get help using Construct 2

Post » Sat Jul 12, 2014 3:45 am

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
B
3
Posts: 6
Reputation: 183

Post » Sat Jul 12, 2014 7:56 am

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

Code: Select all
   <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>


Remember that the warning is there for a reason. Certain functionality is unlikely to work correctly when ran locally.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
85
Posts: 5,412
Reputation: 59,008

Post » Sat Jul 12, 2014 9:05 am

What a quick help. Thanks!
B
3
Posts: 6
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests