Skip to content

Commit 2b2ee27

Browse files
committed
If for whatever reason you wish to hide the Phaser banner in the console.log you can set window.PhaserGlobal.hideBanner to true and it will skip the output. Honestly I'd rather if you didn't, but the option is now there.
1 parent 8340d56 commit 2b2ee27

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Version 2.3.0 - "Tarabon" - in dev
7272
* Phaser now supports rotated and flipped tiles in tilemaps, as exported from the Tiled map editor (thanks @nkholski #1608)
7373
* TilemapParser now supports Tiled 0.11 version maps which includes the `rotation` property on all Object types.
7474
* Tilemap.createFromObjects now checks for a `rotation` property on the Object and if present will set it as the Sprite.angle (#1433)
75+
* If for whatever reason you wish to hide the Phaser banner in the console.log you can set `window.PhaserGlobal.hideBanner` to `true` and it will skip the output. Honestly I'd rather if you didn't, but the option is now there.
7576

7677
### Updates
7778

src/core/Game.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,11 @@ Phaser.Game.prototype = {
578578
*/
579579
showDebugHeader: function () {
580580

581+
if (window['PhaserGlobal'] && window['PhaserGlobal'].hideBanner)
582+
{
583+
return;
584+
}
585+
581586
var v = Phaser.VERSION;
582587
var r = 'Canvas';
583588
var a = 'HTML Audio';

0 commit comments

Comments
 (0)