bitwarden-android/src/iOS.Extension/extension.js

22 lines
541 B
JavaScript
Raw Normal View History

var BitwardenExtension = function () { };
BitwardenExtension.prototype = {
run: function (arguments) {
2016-05-25 07:09:11 +03:00
console.log("Run");
console.log(arguments);
var args = {
baseUri: document.baseURI,
url: document.URL,
htmlContent: document.body.innerHTML
};
arguments.completionFunction(args);
},
finalize: function (arguments) {
2016-05-25 07:09:11 +03:00
console.log("Finalize");
console.log(arguments);
}
};
var ExtensionPreprocessingJS = new BitwardenExtension;