blob: 5a758cce465ee4d8b628457c63db07c0c0554ae1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/**
* This is the entry point for redirects, and should be the only
* web-accessible resource declared in the manifest. This prevents
* malicious websites from embedding wallet pages in them.
*
* We still need this redirect page since a webRequest can only directly
* redirect to pages inside the extension that are a web-accessible resource.
*/
const myUrl = new URL(window.location.href);
window.location.replace(myUrl.searchParams.get("url"));
|