Skip to content

Commit c343c6e

Browse files
committed
Remove unnecessary code for the extension.
1 parent a1c48a1 commit c343c6e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/extension/index.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,10 @@ import {
33
setTokenEditorValue,
44
useDefaultToken
55
} from '../editor';
6-
import { getParameterByName } from '../utils.js';
76
import { publicKeyTextArea } from './dom-elements.js';
87

98
/* For initialization, look at the end of this file */
109

11-
function parseLocationQuery() {
12-
const publicKey = getParameterByName('publicKey');
13-
const value = getParameterByName('value');
14-
const token = getParameterByName('token');
15-
16-
if(publicKey) {
17-
publicKeyTextArea.value = publicKey;
18-
}
19-
if(value) {
20-
setTokenEditorValue(value);
21-
}
22-
if(token) {
23-
setTokenEditorValue(token);
24-
}
25-
}
26-
2710
function loadToken() {
2811
const lastToken = localStorage.getItem('lastToken');
2912
if(lastToken) {
@@ -41,4 +24,3 @@ function loadToken() {
4124
// Initialization
4225
setupTokenEditor();
4326
loadToken();
44-
parseLocationQuery();

0 commit comments

Comments
 (0)