diff options
author | bobzel <zzzman@gmail.com> | 2021-04-19 16:10:19 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-04-19 16:10:19 -0400 |
commit | b7296ff9e0cf083ef1ae3423aa307e0dedf56f94 (patch) | |
tree | 44d9ac8135b53760e20ab838551a115e07cbb0fa /src/client/util/CurrentUserUtils.ts | |
parent | 8824730d44f52ad41c2687205109a271f8c63e80 (diff) |
more improvements to comic mode.
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index cb8bf5a7f..b1b7f8a09 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -1242,3 +1242,5 @@ Scripting.addGlobal(function links(doc: any) { return new List(LinkManager.Insta "returns all the links to the document or its annotations", "(doc: any)"); Scripting.addGlobal(function importDocument() { return CurrentUserUtils.importDocument(); }, "imports files from device directly into the import sidebar"); +Scripting.addGlobal(function toggleComicMode() { Doc.UserDoc().renderStyle = Doc.UserDoc().renderStyle === "comic" ? undefined : "comic"; }, + "toggle between regular rendeing and an informal sketch/comic style"); |