diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-12 14:59:45 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-12 14:59:45 +0900 |
commit | e248477ecb46596af734589615118ba573971dc0 (patch) | |
tree | 8167efec0a4f539d4aecea4a0555c38f6a0934a3 /src/background/repositories | |
parent | 003742ec51aa7aea9214442bc0b611e2eb5eaf6e (diff) |
Scroll on global mark and handle gone tab
Diffstat (limited to 'src/background/repositories')
-rw-r--r-- | src/background/repositories/mark.js | 4 |
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(); |