Prevent alertify.js from overriding styles

pull/1/head
Caleb James DeLisle 6 years ago
parent a2e096b6f3
commit a57a8e51a1

@ -1,3 +1,11 @@
if (!document.querySelector("#alertifyCSS")) {
// Prevent alertify from injecting CSS, we create our own in alertify.less.
var head = document.getElementsByTagName("head")[0];
var css = document.createElement("span");
css.id = "alertifyCSS";
css.setAttribute('data-but-why', 'see: common-interface.js');
head.insertBefore(css, head.firstChild);
}
define([
'jquery',
'/customize/messages.js',

Loading…
Cancel
Save