Add format for plaintext

This commit is contained in:
Nicholas Jitkoff 2021-04-18 08:40:40 -07:00
parent 864a271c09
commit 2c8615694c

View file

@ -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;