Skip to content

Commit 7db3dae

Browse files
committed
fix: remove isOrion
1 parent 2e12574 commit 7db3dae

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/lib/adapters/Git.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
SlashError
1616
} from '../../errors/Error'
1717
import Crypto from '../Crypto'
18-
import { isOrion } from '../isOrion'
1918

2019
const LOCK_INTERVAL = 2 * 60 * 1000 // Lock every 2mins while syncing
2120
const LOCK_TIMEOUT = 15 * 60 * 1000 // Override lock 0.25h after last time lock has been set
@@ -72,7 +71,7 @@ export default class GitAdapter extends CachingAdapter {
7271
this.hash = await Crypto.sha256(JSON.stringify(this.server)) + Date.now()
7372
this.dir = '/' + this.hash + '/'
7473

75-
if (Capacitor.getPlatform() === 'web' && !isOrion) {
74+
if (Capacitor.getPlatform() === 'web') {
7675
const browser = (await import('../browser-api')).default
7776
let hasPermissions, error = false
7877
try {

src/lib/isOrion.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)