From 23af9df3f2c1bdfd00cf327faf00e467d01dc101 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 7 Feb 2018 19:38:00 -0700 Subject: [PATCH] Make theme dev tool more robust --- style_dev/doc.php | 170 ++++++++++++++++++++++++++++++++++++++++++++ style_dev/index.php | 4 +- 2 files changed, 172 insertions(+), 2 deletions(-) diff --git a/style_dev/doc.php b/style_dev/doc.php index b864513..5dd7495 100644 --- a/style_dev/doc.php +++ b/style_dev/doc.php @@ -4,6 +4,9 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +error_reporting(E_WARNING); +ini_set('display_errors', 'On'); + ?> @@ -166,6 +169,173 @@ flex: 0 0 calc(50% - 10px); } + +"; + } + $error .= "Invalid JSON for metadata!"; +} +if ($error != "") { +?> +
Error:
+ +

Theme menu preview:

+
+ + + + + +
+

Theme preview:

diff --git a/style_dev/index.php b/style_dev/index.php index b114758..09cb665 100644 --- a/style_dev/index.php +++ b/style_dev/index.php @@ -43,7 +43,7 @@ background-color: var(--background); @@ -51,7 +51,7 @@ background-color: var(--background);
-