crabatool 1.0.445 → 1.0.446

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/utils.js +1 -1
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -530,7 +530,7 @@ class Utils {
530
530
 
531
531
  rewriteLoginHTML(req, res, next) {
532
532
  var url = req.originalUrl;
533
- if (url.startsWith('/login.html')) {
533
+ if (url.includes('/login.html')) {
534
534
  var htmlPath = utils.join(__dirname, '../res/login.html');
535
535
  var content = fs.readFileSync(htmlPath).toString();
536
536
  content = content.replaceAll('${modName}', config.modName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.445",
3
+ "version": "1.0.446",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {