File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 88 type = 'Files' ;
99 }
1010
11- let input_id = this . data ( 'input' ) ;
12- let preview_id = this . data ( 'preview' ) ;
11+ var input_id = this . data ( 'input' ) ;
12+ var preview_id = this . data ( 'preview' ) ;
1313
1414 this . on ( 'click' , function ( e ) {
1515 localStorage . setItem ( 'target_input' , input_id ) ;
2424
2525function SetUrl ( url ) {
2626 //set the value of the desired input to image url
27- let target_input = $ ( '#' + localStorage . getItem ( 'target_input' ) ) ;
27+ var target_input = $ ( '#' + localStorage . getItem ( 'target_input' ) ) ;
2828 target_input . val ( url ) ;
2929
3030 //set or change the preview image src
31- let target_preview = $ ( '#' + localStorage . getItem ( 'target_preview' ) ) ;
31+ var target_preview = $ ( '#' + localStorage . getItem ( 'target_preview' ) ) ;
3232 target_preview . attr ( 'src' , url ) ;
3333}
You can’t perform that action at this time.
0 commit comments