mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix: client indexing & outdated scheme (#14160)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Optimized storage handling with platform-specific
implementations—SQLite for Electron and IndexedDB for other environments
for improved performance.
* **Bug Fixes**
* Enhanced recording file access and retrieval functionality for better
reliability.
* Strengthened local file protocol handling and security restrictions.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -28,7 +28,9 @@ async function readRecordingFile(filepath: string) {
|
||||
|
||||
const fileUrl = new URL(
|
||||
filepath,
|
||||
location.origin.replace(/\.$/, 'local-file')
|
||||
typeof location !== 'undefined' && location.protocol === 'assets:'
|
||||
? 'assets://local-file'
|
||||
: location.origin
|
||||
);
|
||||
const response = await fetch(fileUrl);
|
||||
if (!response.ok) {
|
||||
|
||||
Reference in New Issue
Block a user