Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove pixi.js banner from the console?

After seeing it for 1000 times it gets annoying so I'd like to have option to remove it.

Somebody online answered that setting

PIXI.dontSayHello = true;

will solve the problem in older versions of PIXI, but in version 3.0.3 it didn't work. Searching for "dontSayHello" in the source code didn't render any results.

like image 877
Pawel Avatar asked May 21 '15 09:05

Pawel


3 Answers

This is deprecated in newer versions:

PIXI.utils._saidHello = true;

This is right:

PIXI.utils.skipHello();

like image 118
fransoudelaar Avatar answered Nov 15 '22 22:11

fransoudelaar


After looking in the source code of Pixi I found that an easy way to disable the banner is to add this line just after pixi.js embed

<script>PIXI.utils._saidHello = true;</script>
like image 28
Pawel Avatar answered Nov 15 '22 23:11

Pawel


You can do this is you are using import statements:

import { utils } from 'pixi.js';
utils.skipHello();
like image 24
Zach Avatar answered Nov 15 '22 22:11

Zach