Skip to content

Commit

Permalink
Force use canvas for all offline usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerlancism committed Jul 21, 2019
1 parent a349a61 commit 366a071
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Phaser CE ParcelJS</title><style>body,html{margin:0;padding:0}#content{position:fixed;height:100%;width:100%}#content canvas{box-shadow:0 0 5px #000}</style><script src="src.cdfeffbf.js"></script></head><body> <div id="content"></div> </body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Phaser CE ParcelJS</title><style>body,html{margin:0;padding:0}#content{position:fixed;height:100%;width:100%}#content canvas{box-shadow:0 0 5px #000}</style><script src="src.16f5b6c0.js"></script></head><body> <div id="content"></div> </body></html>
12 changes: 6 additions & 6 deletions build/src.cdfeffbf.js → build/src.16f5b6c0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/src.16f5b6c0.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/src.cdfeffbf.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function startGameAsync()

const config: Phaser.IGameConfig =
{
renderer: device.ie || isOffline && device.chrome ? Phaser.CANVAS : Phaser.AUTO, // IE cannot play videos in WebGL. Chrome will emit CORS errors if using WebGL offline.
renderer: device.ie || isOffline ? Phaser.CANVAS : Phaser.AUTO, // IE cannot play videos in WebGL. Browsers may emit CORS errors if using WebGL offline.
parent: 'content',
width: 800,
height: 600,
Expand Down

0 comments on commit 366a071

Please sign in to comment.