File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,27 +3,10 @@ import {
33 setTokenEditorValue ,
44 useDefaultToken
55} from '../editor' ;
6- import { getParameterByName } from '../utils.js' ;
76import { 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-
2710function loadToken ( ) {
2811 const lastToken = localStorage . getItem ( 'lastToken' ) ;
2912 if ( lastToken ) {
@@ -41,4 +24,3 @@ function loadToken() {
4124// Initialization
4225setupTokenEditor ( ) ;
4326loadToken ( ) ;
44- parseLocationQuery ( ) ;
You can’t perform that action at this time.
0 commit comments