don't create duplicate stylesheets in the document head

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

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

Loading…
Cancel
Save