Koki Oyatsu 7 år sedan
förälder
incheckning
3344823085
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);
       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'].
     // use config.crowi['app:url'] when exist req.headers['x-forwarded-proto'].
     // refs: lib/crowi/express-init.js
     // refs: lib/crowi/express-init.js