How to remove the pixi.js banner from the console?

After seeing it for 1000 times, it becomes annoying, so I would like to be able to remove it.

Someone on the network replied that setting

PIXI.dontSayHello = true;

will solve the problem in older versions of PIXI, but in version 3.0.3 it will not work. A search for "dontSayHello" in the source code did not return any results.

+4
source share
2 answers

This is deprecated in new versions:

PIXI.utils._saidHello = true;

It is right:

PIXI.utils.skipHello();

+8
source

After looking at the source code for Pixi, I found that an easy way to disable the banner is to add this line right after the introduction of pixi.js

<script>PIXI.utils._saidHello = true;</script>
+4
source

Source: https://habr.com/ru/post/1589163/


All Articles