Skip to content

Commit

Permalink
Move optional permission to the base object
Browse files Browse the repository at this point in the history
  • Loading branch information
neuodev committed Jan 26, 2022
1 parent 6252723 commit ad2d4ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -10,6 +10,9 @@ type State = {|
hasPermission: boolean,
|}

/*::
declare var chrome;
*/
@observer
export default class DappConnectorNavbar extends Component<Props, State> {

Expand Down
5 changes: 1 addition & 4 deletions packages/yoroi-extension/chrome/manifest.template.js
Expand Up @@ -90,12 +90,9 @@ export default ({
uriTemplate: 'main_window.html#/send-from-uri?q=%s',
},
],
optional_permissions: shouldInjectConnector ? ['tabs', 'activeTab', '*://*/*'] : []
};

if (shouldInjectConnector) {
base.optional_permissions = ['tabs', 'activeTab', '*://*/*']
}

const verName /*: {| version_name?: string |} */ = versionName != null
? { version_name: versionName }
: Object.freeze({});
Expand Down

0 comments on commit ad2d4ea

Please sign in to comment.