From 42eafe9e2982101f24acb57963116da1802e1646 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 25 Jul 2016 15:39:54 +0200 Subject: [PATCH] don't create duplicate stylesheets in the document head --- www/common/cryptpad-common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 0a6c6f4f0..70171d809 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -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($('', { rel: 'stylesheet',