mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 05:25:48 +01:00
Add util.weakReference that won't crash if you pass null.
This commit is contained in:
@@ -65,7 +65,7 @@ var Marks = Module("marks", {
|
||||
let mark = this.Mark();
|
||||
|
||||
if (Marks.isURLMark(name)) {
|
||||
mark.tab = Cu.getWeakReference(tabs.getTab());
|
||||
mark.tab = util.weakReference(tabs.getTab());
|
||||
this._urlMarks.set(name, mark);
|
||||
var message = "mark.addURL";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user