mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Add format for plaintext
This commit is contained in:
parent
864a271c09
commit
2c8615694c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue