Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit b6e28f3

Browse files
committed
Try to correct against old profile entries
1 parent d76fc8a commit b6e28f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/bg/filesystem/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function setup () {
6666
// create the root drive as needed
6767
var isInitialCreation = false
6868
browsingProfile = await db.get(`SELECT * FROM profiles WHERE id = 0`)
69-
if (!browsingProfile.url) {
69+
if (!browsingProfile.url || (typeof browsingProfile.url === 'string' && browsingProfile.url.startsWith('dat:'))) {
7070
let drive = await hyper.drives.createNewRootDrive()
7171
logger.info('Root drive created', {url: drive.url})
7272
await db.run(`UPDATE profiles SET url = ? WHERE id = 0`, [drive.url])

0 commit comments

Comments
 (0)