Skip to content

Commit

Permalink
FIX Review Changes (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia authored Oct 15, 2023
1 parent b68347f commit 0329a85
Show file tree
Hide file tree
Showing 3 changed files with 269 additions and 263 deletions.
15 changes: 10 additions & 5 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ function getStyle(isIcon = false) {
}

function byteArrayToString(bytes) {
if (global.TextDecoder) {
return new TextDecoder().decode(bytes);
}

return imports.byteArray.toString(bytes);
return new TextDecoder().decode(bytes);
}

function initNsLabels() {
Expand Down Expand Up @@ -405,6 +401,15 @@ export default class NetSpeedSimplifiedExtension extends Extension {
disable() {
currentSettings = null;
settings = null;

usLabel = null;
dsLabel = null;
tsLabel = null;
tdLabel = null;
usIcon = null;
dsIcon = null;
tsIcon = null;
tdIcon = null;

GLib.source_remove(timeout);
nsDestroy();
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
],
"url": "https://github.com/prateekmedia/netspeedsimplified",
"uuid": "[email protected]",
"version": 40
"version": 41
}
Loading

0 comments on commit 0329a85

Please sign in to comment.