Fixes #90: Re-enables full text search
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { base64Decode } from "../../plugos/asset_bundle/base64.ts";
|
||||
import { base64DecodeDataUrl } from "../../plugos/asset_bundle/base64.ts";
|
||||
import { syscall } from "./syscall.ts";
|
||||
|
||||
export async function readAsset(
|
||||
@@ -8,7 +8,7 @@ export async function readAsset(
|
||||
const dataUrl = await syscall("asset.readAsset", name) as string;
|
||||
switch (encoding) {
|
||||
case "utf8":
|
||||
return new TextDecoder().decode(base64Decode(dataUrl.split(",")[1]));
|
||||
return new TextDecoder().decode(base64DecodeDataUrl(dataUrl));
|
||||
case "dataurl":
|
||||
return dataUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user