don't create duplicate stylesheets in the document head
This commit is contained in:
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…
x
Reference in New Issue
Block a user