don't create duplicate stylesheets in the document head

pull/1/head
ansuz 2016-07-25 15:39:54 +02:00
parent fe3f02f5e0
commit 42eafe9e29
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ define([
};
var styleAlerts = common.styleAlerts = function (href) {
var $link = $('link[href="/customize/alertify.css"]');
if ($link.length) { return; }
href = href || '/customize/alertify.css';
$('head').append($('<link>', {
rel: 'stylesheet',