Skip to content

Build/Index.js gives errors when using latest version of Microsoft Edge #28

Description

@MIsterHunterWolf

Since I first started using PIxelbox, I noticed that games would run just fine in PIxelbox, but when I would use Microsoft Edge to play them, the game would fail to load.

I decided to look a little bit further to see why, & it led me to an error & a warning in Build/Index.js, stating the following:

Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.

Just to be sure, I checked another project, & running it gave me the same error, although I didn't get the warning, even though I didn't mess with anything audio-related in either project. Both of these projects were created in the same version of Pixelbox.

The only 2 things I can think of for causing these errors is either 1. Edge cannot properly run Pixelbox games due to Edge expecting something the project's file structure/content doesn't account for, or 2. My version of Windows 10 being stuck at a 2018 build because of hardware issues is affecting Edge's ability to properly execute Index.js.

I'm not going to doubt the second one, but I find it unlikely, as the version of Windows 10 being run seems to be inconsequential to these messages. It should be up to Edge to handle all the game's code and data, & not the operating system itself.

Since none of the resources added to either project seem to affect this problem, & that the problem lies in Index.js, a file created alongside a new project, I don't think that sharing any files of the problem and games are absolutely necessary, as I cannot think of anything I haven't already stated here that needs to be included. However, if you think I should add a file for further investigation, I will do so.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions