Skip to content

Commit

Permalink
fixes #22 as with gjs in gnome-shell 3.26.1, Calling a TypedArray con…
Browse files Browse the repository at this point in the history
…structor as a function without new, will throw a TypeError
  • Loading branch information
sgaraud committed Oct 24, 2017
1 parent ee56546 commit 123daa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Expand Up @@ -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;
Expand Down

0 comments on commit 123daa4

Please sign in to comment.