aboutsummaryrefslogtreecommitdiff
path: root/src/background/domains/global-mark.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-10-12 14:59:45 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-10-12 14:59:45 +0900
commite248477ecb46596af734589615118ba573971dc0 (patch)
tree8167efec0a4f539d4aecea4a0555c38f6a0934a3 /src/background/domains/global-mark.js
parent003742ec51aa7aea9214442bc0b611e2eb5eaf6e (diff)
Scroll on global mark and handle gone tab
Diffstat (limited to 'src/background/domains/global-mark.js')
-rw-r--r--src/background/domains/global-mark.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/background/domains/global-mark.js b/src/background/domains/global-mark.js
index 77afdba..f0586f1 100644
--- a/src/background/domains/global-mark.js
+++ b/src/background/domains/global-mark.js
@@ -1,6 +1,7 @@
export default class GlobalMark {
- constructor(tabId, x, y) {
+ constructor(tabId, url, x, y) {
this.tabId0 = tabId;
+ this.url0 = url;
this.x0 = x;
this.y0 = y;
}
@@ -9,6 +10,10 @@ export default class GlobalMark {
return this.tabId0;
}
+ get url() {
+ return this.url0;
+ }
+
get x() {
return this.x0;
}