Remove replace call which does not replace anything

The original code replaced / by /.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-10-17 18:27:09 +02:00
parent df6e9109c8
commit a13c80062d

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",