FILEUP



LOG | FILES | OVERVIEW


F diff --git a/actions.js b/actions.js --- a/actions.js +++ b/actions.js
{
"extension": ".txt",
"text": "Google search contents",
- "url": "https://www.google.com/search?q=$filename"
+ "url": "https://www.google.com/search?q=$content_urlencoded"
}
];
F diff --git a/loggedin.js b/loggedin.js --- a/loggedin.js +++ b/loggedin.js
if (text) {
xhr.onload = function () {
- cb(e.responseText);
+ cb(xhr.responseText);
};
} else {
xhr.responseType = 'arraybuffer';
if (fileview.filename.endsWith(a.extension)) {
context_list.push(
[a.text, () => {
- read_file_contents(false, (x) => {
- alert (encodeURIComponent(x));
+ read_file_contents(true, (x) => {
+ const ue = encodeURIComponent(x);
+ let url = a.url.replace("$content_urlencoded", ue)
+ .replace("$filename", fileview.filename);
+ window.location = url;
}, get_path(), fileview.filename);
}]
);