mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
remove HTTP(S) schema for external bootstrap CSS file.
remove HTTP(S) schema from external bootstrap CSS file to avoid mixed content error.
This commit is contained in:
@@ -64,7 +64,7 @@ define('forum/account/settings', ['forum/account/header', 'components', 'csrf'],
|
||||
|
||||
$('#bootswatchSkin').on('change', function() {
|
||||
var css = $('#bootswatchCSS'),
|
||||
val = $(this).val() === 'default' ? config['theme:src'] : 'http://maxcdn.bootstrapcdn.com/bootswatch/latest/' + $(this).val() + '/bootstrap.min.css';
|
||||
val = $(this).val() === 'default' ? config['theme:src'] : '//maxcdn.bootstrapcdn.com/bootswatch/latest/' + $(this).val() + '/bootstrap.min.css';
|
||||
|
||||
css.attr('href', val);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user