Koki Oyatsu 7 лет назад
Родитель
Сommit
3344823085
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/routes/hackmd.js

+ 1 - 1
lib/routes/hackmd.js

@@ -34,7 +34,7 @@ module.exports = function(crowi, app) {
       agentScriptContentTpl = swig.compileFile(agentScriptPath);
     }
 
-    var origin = `${req.protocol}://${req.get('host')}`;
+    let origin = `${req.protocol}://${req.get('host')}`;
 
     // use config.crowi['app:url'] when exist req.headers['x-forwarded-proto'].
     // refs: lib/crowi/express-init.js