diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-19 18:13:10 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-19 18:15:09 +0200 |
commit | 17097052794aef56bbc55327d3e6c84ae1c67378 (patch) | |
tree | 13b81e1105c07c69d7a8d1e7367a698f41663a01 /src/config | |
parent | e372bdaa0344b23c91aefa4da44c578fbf8f49e2 (diff) | |
download | chawan-17097052794aef56bbc55327d3e6c84ae1c67378.tar.gz |
Rework JS exception system
Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma.
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/config.nim b/src/config/config.nim index 45bca17d..48c0dde9 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -44,7 +44,7 @@ type SiteConfig* = object url*: Option[Regex] host*: Option[Regex] - rewrite_url*: (proc(s: URL): Option[URL]) + rewrite_url*: (proc(s: URL): Opt[URL]) cookie*: Option[bool] third_party_cookie*: seq[Regex] share_cookie_jar*: Option[string] @@ -55,7 +55,7 @@ type OmniRule* = object match*: Regex - substitute_url*: (proc(s: string): Option[string]) + substitute_url*: (proc(s: string): Opt[string]) StartConfig = object visual_home*: string |