From e69b6482b7074b7d1d85b38ac1f6d8efaa9bbc94 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 3 Sep 2017 18:14:31 +0300 Subject: [PATCH] reopening a deleted style tab should switch to adding --- edit/edit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edit/edit.js b/edit/edit.js index 2e9e1430..d48d8b35 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1329,9 +1329,9 @@ function init() { } function setStyleMeta(style) { - $('#name').value = style.name; - $('#enabled').checked = style.enabled; - $('#url').href = style.url; + $('#name').value = style.name || ''; + $('#enabled').checked = style.enabled !== false; + $('#url').href = style.url || ''; } function initWithStyle({style, codeIsUpdated}) {