yearn / yearn-finance-v3

Yearn Finance Web App v3
https://yearn.finance
123 stars 138 forks source link

fix: metamask provider CSP workaround #739

Closed xgambitox closed 2 years ago

xgambitox commented 2 years ago

Description

Inject Metamask provider when CSP blocks the extension from adding inline script code. If no wallet provider is found on a Firefox browser, Metamask provider injection will be executed and initialized by ourselves. Since Metamask is the most used wallet extension, we can assume this will work on most cases.

Related Issue

738

Motivation and Context

How Has This Been Tested?

aws-amplify-us-east-1[bot] commented 2 years ago

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-739.d27dgpz01hmbvx.amplifyapp.com