Skip to content

Commit 0329a85

Browse files
authored
FIX Review Changes (#61)
1 parent b68347f commit 0329a85

File tree

3 files changed

+269
-263
lines changed

3 files changed

+269
-263
lines changed

extension.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ function getStyle(isIcon = false) {
116116
}
117117

118118
function byteArrayToString(bytes) {
119-
if (global.TextDecoder) {
120-
return new TextDecoder().decode(bytes);
121-
}
122-
123-
return imports.byteArray.toString(bytes);
119+
return new TextDecoder().decode(bytes);
124120
}
125121

126122
function initNsLabels() {
@@ -405,6 +401,15 @@ export default class NetSpeedSimplifiedExtension extends Extension {
405401
disable() {
406402
currentSettings = null;
407403
settings = null;
404+
405+
usLabel = null;
406+
dsLabel = null;
407+
tsLabel = null;
408+
tdLabel = null;
409+
usIcon = null;
410+
dsIcon = null;
411+
tsIcon = null;
412+
tdIcon = null;
408413

409414
GLib.source_remove(timeout);
410415
nsDestroy();

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
],
88
"url": "https://github.com/prateekmedia/netspeedsimplified",
99
"uuid": "[email protected]",
10-
"version": 40
10+
"version": 41
1111
}

0 commit comments

Comments
 (0)