Skip to content

Commit

Permalink
chore(chrome-extension): simplify check for fileSchemaAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Oct 3, 2022
1 parent be7f4a6 commit 7198e54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions chrome-extension/src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { DISPLAY_NAME } from './constants/info';
import { resolveMysticLightAddress } from './mysticLightConfig';
import { getAddressWithStorage, writeAddressIntoStorage } from './storage';
import type { ExtensionMessageShowAlert } from './types/message';
import { checkFileSchemeAccess } from './utils/checkFileSchemeAccess';

const openInstructionsTabForNativeApp = async () => {
const instructionTab = await chrome.tabs.create({
Expand Down Expand Up @@ -83,7 +82,7 @@ const checkApiIsAvailable = async () => {
};

chrome.runtime.onInstalled.addListener(async () => {
const hasFileSchemaAccess = await checkFileSchemeAccess();
const hasFileSchemaAccess = await chrome.extension.isAllowedFileSchemeAccess();

if (!hasFileSchemaAccess) {
await openInstructionsTabForExtension();
Expand Down
5 changes: 0 additions & 5 deletions chrome-extension/src/utils/checkFileSchemeAccess.ts

This file was deleted.

0 comments on commit 7198e54

Please sign in to comment.