Skip to content

Commit

Permalink
LoaderUtils: Deprecate decodeText(). (#28278)
Browse files Browse the repository at this point in the history
* remove decodetext from src

* Revert "remove decodetext from src"

This reverts commit b76afcd.

* deprecate decodeText()
  • Loading branch information
ycw committed May 6, 2024
1 parent 7604fee commit 79c3490
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/loaders/LoaderUtils.js
@@ -1,6 +1,8 @@
class LoaderUtils {

static decodeText( array ) {
static decodeText( array ) { // @deprecated, r165

console.warn( 'THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead.' );

if ( typeof TextDecoder !== 'undefined' ) {

Expand Down

0 comments on commit 79c3490

Please sign in to comment.