Merge pull request #11889 from stweil/lgtm

Remove replace call which does not replace anything
This commit is contained in:
Morris Jobke 2018-10-24 23:55:55 +02:00 committed by GitHub
commit 88904200e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ function preview(setting, value, serverCssUrl) {
var reloadStylesheets = function(cssFile) {
var queryString = '?reload=' + new Date().getTime();
var url = cssFile + queryString;
var old = $('link[href*="' + cssFile.replace("/","\/") + '"]');
var old = $('link[href*="' + cssFile + '"]');
var stylesheet = $("<link/>", {
rel: "stylesheet",
type: "text/css",