File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,12 +61,6 @@ function a(){
6161 message : 'Property "url" is not a URL.'
6262 } ) ;
6363 }
64- if ( ! isUrl ( setup . arena . replay ) ) {
65- errors . push ( {
66- path : [ index_0 , 'arena' , 'replay' ] ,
67- message : 'Property "replay" is not a URL.'
68- } ) ;
69- }
7064 } else if ( setup . settings ) {
7165 errors . push ( {
7266 path : [ index_0 , 'settings' ] ,
Original file line number Diff line number Diff line change @@ -188,22 +188,7 @@ function a(){
188188 _element_previousReplaysController . classList . remove ( 'hidden' ) ;
189189 } ) ;
190190 function onValidate ( json ) {
191- function isUrl ( string ) {
192- let url ;
193- try {
194- url = new URL ( string ) ;
195- } catch ( e ) {
196- return false ;
197- }
198- return url . protocol === 'http:' || url . protocol === 'https:' ;
199- }
200191 let errors = [ ] ;
201- if ( json . header !== undefined && json . header . defaultReplay !== undefined && ! isUrl ( json . header . defaultReplay ) ) {
202- errors . push ( {
203- path : [ 'header' ] ,
204- message : 'Property "defaultReplay" is not a URL.'
205- } ) ;
206- }
207192 if ( json . body !== undefined && typeof json . body . matchLogs !== 'object' ) {
208193 errors . push ( {
209194 path : [ 'body' ] ,
You can’t perform that action at this time.
0 commit comments