File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ let config = {
13
13
customSnippets : 'Fastly_Cdn/js/custom-snippets' ,
14
14
setServiceLabel : 'Fastly_Cdn/js/service-label' ,
15
15
popup : 'Fastly_Cdn/js/popup' ,
16
- testConnection : 'Fastly_Cdn/js/testconnection' ,
16
+ fastlyTestConnection : 'Fastly_Cdn/js/testconnection' ,
17
17
resetAllMessages : 'Fastly_Cdn/js/reset-all-messages' ,
18
18
showErrorMessage : 'Fastly_Cdn/js/error-message' ,
19
19
showSuccessMessage : 'Fastly_Cdn/js/success-message' ,
Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ define([
62
62
$ ( '#row_system_full_page_cache_fastly_fastly_web_application_firewall_owasp_restricted_extensions' ) . hide ( ) ;
63
63
$ ( '#row_system_full_page_cache_fastly_fastly_web_application_firewall_owasp_allowed_methods' ) . hide ( ) ;
64
64
65
+ requirejs ( [ 'fastlyTestConnection' ] , function ( fastlyTestConnection ) {
66
+ fastlyTestConnection ( config ) ;
67
+ } ) ;
68
+
65
69
$ . ajax ( {
66
70
type : "GET" ,
67
71
url : config . serviceInfoUrl ,
@@ -77,10 +81,6 @@ define([
77
81
uploadVcl ( config , serviceStatus , isAlreadyConfigured ) ;
78
82
} ) ;
79
83
80
- requirejs ( [ 'testConnection' ] , function ( testConnection ) {
81
- testConnection ( config ) ;
82
- } ) ;
83
-
84
84
advancedConfigurationHead . one ( 'click' , function ( ) {
85
85
requirejs ( [ 'tls' ] , function ( tls ) {
86
86
tls ( config , serviceStatus , isAlreadyConfigured ) ;
You can’t perform that action at this time.
0 commit comments