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

21 lines
502 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 = {
content: document.body.innerHTML,
uri: document.baseURI
};
arguments.completionFunction(args);
},
finalize: function (arguments) {
2016-05-25 07:09:11 +03:00
console.log("Finalize");
console.log(arguments);
}
};
var ExtensionPreprocessingJS = new BitwardenExtension;