use the pre-calculated validation test.

This commit is contained in:
Daniel Jalkut 2018-06-19 14:41:50 -04:00
parent 8e5af2e7b0
commit 86ba4b84a8
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ if ((window.top === window) && (typeof safari != 'undefined') && (document.loca
var shouldValidate = (document.location != null) && (thisPageLinkObjects.length > 0); var shouldValidate = (document.location != null) && (thisPageLinkObjects.length > 0);
// Pass back the same validationID we were handed so they can look up the correlated validationHandler // Pass back the same validationID we were handed so they can look up the correlated validationHandler
safari.extension.dispatchMessage("pong", { "validationID": event.message.validationID, "shouldValidate": thisPageLinkObjects.length > 0 }); safari.extension.dispatchMessage("pong", { "validationID": event.message.validationID, "shouldValidate": shouldValidate });
} }
}, false); }, false);