From 5c57bd44e1571988e976c177d82101ac51924fe2 Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 19 Mar 2015 20:23:34 -0700 Subject: [PATCH] Suppress TypeError if no password form --- templates/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/main.js b/templates/main.js index f4be2c8c..77f5b9f4 100644 --- a/templates/main.js +++ b/templates/main.js @@ -336,7 +336,7 @@ function init() { {% endraw %} {% if config.allow_delete %} - if (document.forms.postcontrols) { + if (document.forms.postcontrols && document.forms.postcontrols.password) { document.forms.postcontrols.password.value = localStorage.password; } {% endif %}