mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 14:45:45 +01:00
Don't attempt to expand non-existent abbreviations with Object property names.
This commit is contained in:
@@ -113,7 +113,7 @@ var Abbreviations = Module("abbreviations", {
|
||||
*/
|
||||
get: function (mode, lhs) {
|
||||
let abbrevs = this.abbrevs[mode];
|
||||
return abbrevs && abbrevs[lhs];
|
||||
return abbrevs && abbrevs.hasOwnProperty(lhs) ? abbrevs[lhs] : null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user