Skip to content

Commit 80b1c2f

Browse files
authored
Merge pull request #222 from Inchoo/bugfix/#199-module-breaks-search-engine-switcher
Bugfix/#199 module breaks search engine switcher
2 parents c99d56b + 6469edd commit 80b1c2f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: view/adminhtml/requirejs-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let config = {
1313
customSnippets: 'Fastly_Cdn/js/custom-snippets',
1414
setServiceLabel: 'Fastly_Cdn/js/service-label',
1515
popup: 'Fastly_Cdn/js/popup',
16-
testConnection: 'Fastly_Cdn/js/testconnection',
16+
fastlyTestConnection: 'Fastly_Cdn/js/testconnection',
1717
resetAllMessages: 'Fastly_Cdn/js/reset-all-messages',
1818
showErrorMessage: 'Fastly_Cdn/js/error-message',
1919
showSuccessMessage: 'Fastly_Cdn/js/success-message',

Diff for: view/adminhtml/web/js/init.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ define([
6262
$('#row_system_full_page_cache_fastly_fastly_web_application_firewall_owasp_restricted_extensions').hide();
6363
$('#row_system_full_page_cache_fastly_fastly_web_application_firewall_owasp_allowed_methods').hide();
6464

65+
requirejs(['fastlyTestConnection'], function (fastlyTestConnection) {
66+
fastlyTestConnection(config);
67+
});
68+
6569
$.ajax({
6670
type: "GET",
6771
url: config.serviceInfoUrl,
@@ -77,10 +81,6 @@ define([
7781
uploadVcl(config, serviceStatus, isAlreadyConfigured);
7882
});
7983

80-
requirejs(['testConnection'], function (testConnection) {
81-
testConnection(config);
82-
});
83-
8484
advancedConfigurationHead.one('click', function () {
8585
requirejs(['tls'], function (tls) {
8686
tls(config, serviceStatus, isAlreadyConfigured);

0 commit comments

Comments
 (0)