Skip to content

Commit

Permalink
fix(Deps): fix import and lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoustachiste committed Feb 23, 2023
1 parent 122bcf1 commit d3fa44a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/helpers/base64.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type BlockcertsV3Display } from '../../../cert-verifier-js';
import { type BlockcertsV3Display } from '@blockcerts/cert-verifier-js';

const toBase64 = (textContent: string): string => {
return window.btoa(textContent);
Expand All @@ -8,8 +8,6 @@ export function getBase64String (display: BlockcertsV3Display): string {
if (display.contentEncoding !== 'base64') {
return '';
}
// eslint error on Travis only, https://app.travis-ci.com/github/blockchain-certificates/blockcerts-verifier/jobs/596641040
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
return `data:${display.contentMediaType};${display.contentEncoding},${display.content}`;
}

Expand Down

0 comments on commit d3fa44a

Please sign in to comment.