Skip to content

Commit

Permalink
remove dataUriHtmlHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Sep 12, 2024
1 parent 7690339 commit 999422e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/crowngui/webview.nim
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ type
scope, name, args: string
ExternalInvokeCb* = proc (w: Webview; arg: cstring) ## External CallBack Proc

template dataUriHtmlHeader*(s: string): string =
## Data URI for HTML UTF-8 header string. For Mac uses Base64, `import base64` to use.
when defined(osx): "data:text/html;charset=utf-8;base64," & base64.encode(s)
else: "data:text/html," & s

const
fileLocalHeader* = "file:///" ## Use Local File as URL

Expand Down

0 comments on commit 999422e

Please sign in to comment.