aboutsummaryrefslogtreecommitdiff
path: root/src/content/navigates.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/navigates.js')
-rw-r--r--src/content/navigates.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/content/navigates.js b/src/content/navigates.js
index 692b7be..64e5fc0 100644
--- a/src/content/navigates.js
+++ b/src/content/navigates.js
@@ -63,4 +63,8 @@ const parent = (win) => {
}
};
-export { historyPrev, historyNext, linkPrev, linkNext, parent };
+const root = (win) => {
+ win.location = win.location.origin;
+};
+
+export { historyPrev, historyNext, linkPrev, linkNext, parent, root };