From 570f43c87484c68631c1180743bed5cc0cbb7d24 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 13 Oct 2015 03:13:44 -0400 Subject: [PATCH] Don't load enigma and managesieve css where it's not needed --- plugins/enigma/enigma.php | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/plugins/enigma/enigma.php b/plugins/enigma/enigma.php index 1f406bb..8e8ded2 100644 --- a/plugins/enigma/enigma.php +++ b/plugins/enigma/enigma.php @@ -80,7 +80,10 @@ // $this->register_action('plugin.enigmacerts', array($this, 'preferences_ui')); $this->load_ui(); - $this->ui->add_css(); + + if (empty($_REQUEST['_framed']) || strpos($this->rc->action, 'plugin.enigma') === 0) { + $this->ui->add_css(); + } } $this->add_hook('refresh', array($this, 'refresh')); -- Gitblit v1.9.1