summaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r--core/js/setupchecks.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index fe6ab1105a2..be6dc747540 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -136,40 +136,6 @@
return deferred.promise();
},
-
- /**
- * Check whether the WOFF2 URLs works.
- *
- * @param url the URL to test
- * @param placeholderUrl the placeholder URL - can be found at OC.theme.docPlaceholderUrl
- * @return $.Deferred object resolved with an array of error messages
- */
- checkWOFF2Loading: function(url, placeholderUrl) {
- var deferred = $.Deferred();
-
- var afterCall = function(xhr) {
- var messages = [];
- if (xhr.status !== 200) {
- var docUrl = placeholderUrl.replace('PLACEHOLDER', 'admin-nginx');
- messages.push({
- msg: t('core', 'Your web server is not properly set up to deliver .woff2 files. This is typically an issue with the Nginx configuration. For Nextcloud 15 it needs an adjustement to also deliver .woff2 files. Compare your Nginx configuration to the recommended configuration in our {linkstart}documentation ↗{linkend}.', { docLink: docUrl, url: url })
- .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + docUrl + '">')
- .replace('{linkend}', '</a>'),
- type: OC.SetupChecks.MESSAGE_TYPE_WARNING
- });
- }
- deferred.resolve(messages);
- };
-
- $.ajax({
- type: 'GET',
- url: url,
- complete: afterCall,
- allowAuthErrors: true
- });
- return deferred.promise();
- },
-
/**
* Runs setup checks on the server side
*