mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
11 lines
363 B
JavaScript
11 lines
363 B
JavaScript
var SelectedTextPreprocessor = function() {};
|
|
SelectedTextPreprocessor.prototype = {
|
|
run: function(args) {
|
|
args.completionFunction({
|
|
"url": document.URL,
|
|
"title": document.title,
|
|
"selectedText": window.getSelection().toString()
|
|
});
|
|
}
|
|
};
|
|
window.ExtensionPreprocessingJS = new SelectedTextPreprocessor();
|