Koki Oyatsu пре 7 година
родитељ
комит
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