From 123daa4e51594a191a24d58f7f2ea96ce93b67b8 Mon Sep 17 00:00:00 2001 From: sylvain garaud Date: Tue, 24 Oct 2017 12:39:32 +0200 Subject: [PATCH] fixes #22 as with gjs in gnome-shell 3.26.1, Calling a TypedArray constructor as a function without new, will throw a TypeError --- extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.js b/extension.js index 1412692..11c4ce5 100644 --- a/extension.js +++ b/extension.js @@ -296,7 +296,7 @@ const IpMenuBase = new Lang.Class({ _decodeIp4: function (num) { num = num >>> 0; - let array = Uint8Array(4); + let array = new Uint8Array(4); array[0] = num; array[1] = num >> 8; array[2] = num >> 16;