aboutsummaryrefslogtreecommitdiff
path: root/src/background/repositories
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/repositories
parent003742ec51aa7aea9214442bc0b611e2eb5eaf6e (diff)
Scroll on global mark and handle gone tab
Diffstat (limited to 'src/background/repositories')
-rw-r--r--src/background/repositories/mark.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background/repositories/mark.js b/src/background/repositories/mark.js
index a1f6a16..339a660 100644
--- a/src/background/repositories/mark.js
+++ b/src/background/repositories/mark.js
@@ -14,13 +14,13 @@ export default class MarkRepository {
if (!data) {
return Promise.resolve(undefined);
}
- let mark = new GlobalMark(data.tabId, data.x, data.y);
+ let mark = new GlobalMark(data.tabId, data.url, data.x, data.y);
return Promise.resolve(mark);
}
setMark(key, mark) {
let marks = this.getOrEmptyMarks();
- marks[key] = { tabId: mark.tabId, x: mark.x, y: mark.y };
+ marks[key] = { tabId: mark.tabId, url: mark.url, x: mark.x, y: mark.y };
this.cache.set(MARK_KEY, marks);
return Promise.resolve();