Update routes.js (#181)

token ?? is recently added and hence may not be available on armv6l platforms.
Fixes:
/opt/node/lib/node_modules/crontab-ui/routes.js:2
var base_url = process.env.BASE_URL ?? '';
                                     ^
SyntaxError: Unexpected token ?
pull/192/head
Sundeep Anand 2022-04-04 04:22:49 +05:30 committed by GitHub
parent 6cf4ce4eb8
commit ebd009ec22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
// base url
var base_url = process.env.BASE_URL ?? '';
var base_url = (process.env.BASE_URL == undefined ? '' : process.env.BASE_URL);
base_url = base_url.replace(/\/+$/, "").trim();
exports.base_url = base_url;