We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e783f2 commit e07d1e3Copy full SHA for e07d1e3
1 file changed
packages/vscode-host/src/deth/commands/ethViewerCommands.ts
@@ -18,15 +18,10 @@ export const ethViewerCommands = {
18
},
19
getApiName: (): string | undefined => {
20
const { hostname, search } = window.location;
21
- let res: string | undefined = undefined;
22
23
const searchParam = new URLSearchParams(search).get("explorer");
24
- if (searchParam) res = searchParam;
25
26
- // @todo this can be deprecated after we deploy and configure iframe entrypoints
27
- if (hostname.endsWith(".deth.net")) res = hostname.slice(0, -9);
28
-
29
- return res && res.replace(/^www\./, "");
+ return searchParam?.replace(/^www\./, "");
30
31
openRepoOnGithub: () => {
32
window.open("https://github.com/dethcrypto/ethereum-code-viewer", "_blank");
0 commit comments