mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 00:34:11 +01:00
Make further use of default parameters.
--HG-- extra : rebase_source : ab666bce7ed7e47c8f1e2bc4145f553da990d319
This commit is contained in:
@@ -34,12 +34,10 @@ var Marks = Module("marks", {
|
||||
|
||||
get localURI() buffer.focusedFrame.document.documentURI.replace(/#.*/, ""),
|
||||
|
||||
Mark: function Mark(params) {
|
||||
Mark: function Mark(params = {}) {
|
||||
let win = buffer.focusedFrame;
|
||||
let doc = win.document;
|
||||
|
||||
params = params || {};
|
||||
|
||||
params.location = doc.documentURI.replace(/#.*/, ""),
|
||||
params.offset = buffer.scrollPosition;
|
||||
params.path = DOM(buffer.findScrollable(0, false)).xpath;
|
||||
|
||||
Reference in New Issue
Block a user