diff options
author | Yorhel <git@yorhel.nl> | 2020-04-17 11:17:30 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-04-17 11:17:34 +0200 |
commit | b14d888f17ff189508f6005352b6dafbccefeafa (patch) | |
tree | 52277764cfed1bbdef17964b07f03679cd9210ba /lib | |
parent | 86c0a244fa47a301c43e0750cedff494b0d0ef64 (diff) |
JS: Obtain urlStatic from the DOM rather than embedding it in the JS file
This way I don't have to rebuild the JS file for each deploy - the
generated JS is now the same for dev and prod.
(uglifyjs & zoplfi aren't fast)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNWeb/Elm.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VNWeb/Elm.pm b/lib/VNWeb/Elm.pm index d8f76303..7cce9109 100644 --- a/lib/VNWeb/Elm.pm +++ b/lib/VNWeb/Elm.pm @@ -97,7 +97,7 @@ our %apis = ( id => {}, title => {}, } }, - votes => { aoh => { + votes => { unique => 0, aoh => { user => {}, uid => { uint => 1, required => 0 }, sexual => { uint => 1 }, @@ -349,7 +349,6 @@ sub write_api { sub write_types { my $data = ''; - $data .= def urlStatic => String => string config->{url_static}; $data .= def adminEMail => String => string config->{admin_email}; $data .= def skins => 'List (String, String)' => list map tuple(string $_, string tuwf->{skins}{$_}[0]), |