From a7af875a651b6c3f76834ed6780991e0b121f218 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Wed, 2 Dec 2020 11:10:53 -0800 Subject: fix readlink bug --- extension/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extension') diff --git a/extension/background.js b/extension/background.js index 643b43b..617ee32 100644 --- a/extension/background.js +++ b/extension/background.js @@ -243,7 +243,7 @@ router["/tabs/by-title"] = { router["/tabs/by-title/*"] = { // a symbolic link to /tabs/by-id/[id for this tab] async getattr({path}) { - const st_size = (await this.readlink(path)).length + 1; + const st_size = (await this.readlink({path})).length + 1; return { st_mode: unix.S_IFLNK | 0444, st_nlink: 1, @@ -261,7 +261,7 @@ router["/tabs/by-title/*"] = { router["/tabs/last-focused"] = { // a symbolic link to /tabs/by-id/[id for this tab] async getattr({path}) { - const st_size = (await this.readlink(path)).length + 1; + const st_size = (await this.readlink({path})).length + 1; return { st_mode: unix.S_IFLNK | 0444, st_nlink: 1, -- cgit v1.2.3