File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,9 @@ function encodeToken() {
208
208
209
209
tokenEditor . setValue ( encoded ) ;
210
210
} catch ( e ) {
211
- console . error ( 'Failed to sign/encode token: ' , e ) ;
211
+ console . error ( 'Failed to sign/encode token: ' , e ) ;
212
+ markAsInvalid ( ) ;
213
+ tokenEditor . setValue ( '' ) ;
212
214
}
213
215
214
216
verifyToken ( ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function tooltipHandler(event) {
18
18
payloadTooltipElement . style . left = event . pageX + 'px' ;
19
19
payloadTooltipElement . style . top = event . pageY + 'px' ;
20
20
21
- payloadTooltipElement . style . display = '' ;
21
+ payloadTooltipElement . style . display = 'block ' ;
22
22
} else {
23
23
payloadTooltipElement . style . display = 'none' ;
24
24
}
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ block content
159
159
p.text-line PAYLOAD:
160
160
span DATA
161
161
.js-payload
162
- #js-payload-tooltip
162
+ #js-payload-tooltip placeholder
163
163
164
164
.jwt-explained.jwt-signature
165
165
p.text-line VERIFY SIGNATURE
You can’t perform that action at this time.
0 commit comments