From 2c8615694c4668ec6442955b2972c406f29a65c1 Mon Sep 17 00:00:00 2001 From: Nicholas Jitkoff Date: Sun, 18 Apr 2021 08:40:40 -0700 Subject: [PATCH] Add format for plaintext --- public/index.src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/index.src/index.js b/public/index.src/index.js index cd1a9dd..9b62a1b 100644 --- a/public/index.src/index.js +++ b/public/index.src/index.js @@ -43,6 +43,8 @@ window.onhashchange = window.onload = function() { hash; } else if (hash.indexOf("data:text/html;") == 0) { preamble = HEAD_TAGS; + } else if (hash.indexOf("data:text/plain;") == 0) { + preamble = HEAD_TAGS_EXTENDED; } link.onclick = function() { location.href = "/edit" + location.hash;