1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-01 18:10:17 +12:00

abp:subscribe fixes

Test a[href^="abp:"], since the protocol probably not used for anything
else, also "a", because ABP checks only anchors, and these links are made
only for ABP.

Also, the event target is not always the link, so at least some parents
should be tested as well.
This commit is contained in:
Deathamns 2015-03-16 10:37:55 +01:00 committed by gorhill
parent aff7501596
commit bbfcb4eea9

View file

@ -127,7 +127,8 @@ vAPI.localStorage = {
getItem: function(key) {
try {
return this.PB.getComplexValue(
key, Components.interfaces.nsISupportsString
key,
Components.interfaces.nsISupportsString
).data;
} catch (ex) {
return null;