aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Rizwan <omar.rizwan@gmail.com>2020-12-02 11:10:53 -0800
committerOmar Rizwan <omar.rizwan@gmail.com>2020-12-02 11:10:53 -0800
commita7af875a651b6c3f76834ed6780991e0b121f218 (patch)
tree0e75f0cc15a597df6d523558724a8405e22e9ff9
parent648d5958074e046568a79129bf34c3479a620879 (diff)
fix readlink bug
-rw-r--r--extension/background.js4
1 files changed, 2 insertions, 2 deletions
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,