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

Commit

Permalink
Change usage of pda
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Aug 16, 2019
1 parent e50431d commit 9fdc236
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions app/background-process/ui/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as beakerCore from '@beaker/core'
const dat = beakerCore.dat
const sitedata = beakerCore.dbs.sitedata
import _get from 'lodash.get'
import pda from 'pauls-dat-api'
import parseDatURL from 'parse-dat-url'
import * as permPromptSubwindow from './subwindows/perm-prompt'
import * as viewManager from './view-manager'
Expand Down Expand Up @@ -77,7 +76,7 @@ export async function checkLabsPerm ({perm, labApi, apiDocsUrl, sender}) {
let archive = dat.library.getArchive(key)
if (archive) {
let {checkoutFS} = await dat.library.getArchiveCheckout(archive, urlp.version)
let manifest = await pda.readManifest(checkoutFS).catch(_ => {})
let manifest = await checkoutFS.pda.readManifest().catch(_ => {})
let apis = _get(manifest, 'experimental.apis')
if (apis && Array.isArray(apis)) {
isOptedIn = apis.includes(labApi)
Expand Down
1 change: 0 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"os-name": "^2.0.1",
"page-metadata-parser": "^1.1.3",
"parse-dat-url": "^3.0.1",
"pauls-dat-api": "^8.0.1",
"pauls-electron-rpc": "^5.0.0",
"pauls-word-boundary": "^1.0.0",
"pify": "^2.3.0",
Expand Down

0 comments on commit 9fdc236

Please sign in to comment.