pop-os / gnome-shell-extension-system76-power

System76 Power Management Extension
MIT License
90 stars 26 forks source link

Fix an error about converting a byte array into a string #21

Closed mmstick closed 5 years ago

mmstick commented 5 years ago

Fixes this error:

Some code called array.toString() on a Uint8Array instance. Previously this would have interpreted the bytes of the array as a string, but that is nonstandard. In the future this will return the bytes as comma-separated digits. For the time being, the old behavior has been preserved, but please fix your code anyway to explicitly call ByteArray.toString(array).
    (Note that array.toString() may have been called implicitly.)
    0 init() ["/usr/share/gnome-shell/extensions/system76-power@system76.com/extension.js":57]