No longer serialize binary blobs as data URLs
This commit is contained in:
@@ -77,9 +77,6 @@ async function actionClickOrActionEnter(
|
||||
}
|
||||
if (url.indexOf("://") === -1 && !url.startsWith("mailto:")) {
|
||||
url = decodeURIComponent(url);
|
||||
// // attachment URL, let's fetch as a data url
|
||||
// const dataUrl = await space.readAttachment(url);
|
||||
// return editor.downloadFile(url, dataUrl);
|
||||
return editor.openUrl(`/.fs/${url}`);
|
||||
} else {
|
||||
await editor.openUrl(url);
|
||||
|
||||
@@ -57,8 +57,7 @@ export async function updatePlugsCommand() {
|
||||
// console.log("Writing", `_plug/${plugName}.plug.js`, workerCode);
|
||||
await space.writeAttachment(
|
||||
`_plug/${plugName}.plug.js`,
|
||||
"utf8",
|
||||
workerCode,
|
||||
new TextEncoder().encode(workerCode),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user