Chrome cr_createRuntime workarounds

0 favourites
  • 2 posts
From the Asset Store
Web3 Integration
$2 USD
60% off
This is a simple login feature to access Metamask in construct 3. Requires a Chrome Browser and Metamask Extension.
  • What are common workarounds for this error on Chrome?

    // Create new runtime using the c2canvas
                  ?cr_createRuntime("c2canvas");
    Uncaught ReferenceError: [b]cr_createRuntime[/b] is not defined
              });
              
              // Pause and resume on page becoming visible/invisible
              function onVisibilityChanged() {
                  ?if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
                        cr_setSuspended(true);
    Uncaught ReferenceError: [b]cr_setSuspended[/b] is not defined
                  ?else
    

    only happens on Chrome, (Firefox, Safari work fine)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm sure that by now you've probably realized that the issue lies within Jquery. Something about it makes it only be able to run when hosted on a server. Not exactly sure why, but I'm currently programming a work-around for this, mainly so that I can export from HTML5 in Construct 2 and then rewrite some lines of code to compile apps using CocoonJS. If you'd like, you can PM me and I'll tell you what my results are.

    EDIT: My bad, the cr arrays are called within the runtime script, in which case, it doesn't need Jquery at all. There just needs to be some tampering of functions within the runtime.

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