-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Extract" Button stays red and unclickable #362
Comments
+1, in my vault and in Sandbox: My Vault
Sandbox (same behavior):
|
+1 i have the same issue on windows 11 and Macos :/ |
Same, I've even tried opening a backup copy of the sqlite database that's on my laptop. |
Please try to fix this!!!! I really enjoy this plugin |
I fixed the main.js file. Change this: this.inputFileEl.addEventListener("change", (ev) => {
const file = ev.target.files[0];
if (!file) {
console.error("No file selected");
return;
}
// Convert File to ArrayBuffer
const reader = new FileReader();
reader.onload = () => {
this.fileBuffer = reader.result; // Store the ArrayBuffer
this.goButtonEl.disabled = false;
this.goButtonEl.setAttr("style", "background-color: green; color: black");
new import_obsidian2.Notice("Ready to extract!");
};
reader.onerror = (error) => {
console.error("FileReader error:", error);
new import_obsidian2.Notice("Error reading file");
};
reader.readAsArrayBuffer(file);
}); And: fetchHighlights() {
return __async(this, null, function* () {
if (!this.fileBuffer) {
throw new Error("No file buffer available...");
}
const SQLEngine = yield (0, import_sql.default)({
wasmBinary: binary
});
// Use the buffer directly instead of reading from file
const db = new SQLEngine.Database(new Uint8Array(this.fileBuffer));
const service = new HighlightService(
new Repository(db)
);
// Rest of the function remains the same...
});
} |
Thanks @FrnklyN but would you mind to share a main.js file with the changes included? Thanks! |
i found a workaround with koreader https://koreader.rocks/ I install this on my Kobo, and now I can export my note in Markdown 🎉 |
I am also unable to extract. Whether its the .sqlite file on the device or offloaded into my desktop, the extraction button doesn't change and remains locked. Unfortunately I am not code Savvy and have no idea what needs to be replaced in the Main.js file via @FrnklyN's find/fix |
This worked like a charm! Thanks, @FrnklyN!
|
Please! Can you copy/paste here he complete code of the main.js file so I can replicate on mine??? |
Hi there,
When I click "choose file" and select "koboreader.sqlite", the "extract" button remains red and I can't click it. Is there something in the settings I need to adjust first?
Thanks!
The text was updated successfully, but these errors were encountered: