File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,11 @@ function getLinkAndIframe() {
121121 params . start_at_slide = parseInt ( e_startatslide . value , 10 ) ;
122122 }
123123
124- if ( e_width . value > 0 ) {
125- params . width = e_width . value ;
124+ if ( e_width . value . trim ( ) . match ( / ^ \d + % ? $ / ) ) {
125+ params . width = e_width . value . trim ( ) ;
126126 }
127- if ( e_height . value > 0 ) {
128- params . height = e_height . value ;
127+ if ( e_height . value . trim ( ) . match ( / ^ \d + % ? $ / ) ) {
128+ params . height = e_height . value . trim ( ) ;
129129 }
130130
131131 let source_url = urlBase + "embed/index.html" ;
@@ -143,7 +143,7 @@ function getLinkAndIframe() {
143143 iframe += " webkitallowfullscreen mozallowfullscreen allowfullscreen frameborder='0'></iframe>" ;
144144
145145 theobj . iframe = iframe ;
146- theobj . link = vars ;
146+ theobj . link = source_url ;
147147 theobj . copybox = iframe ;
148148 return theobj ;
149149} ;
You can’t perform that action at this time.
0 commit comments