don't create duplicate stylesheets in the document head

pull/1/head
ansuz 9 years ago
parent fe3f02f5e0
commit 42eafe9e29

@ -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',

Loading…
Cancel
Save