|
|
@@ -1,4 +1,4 @@
|
|
|
-import { stylesCSS, styles, agent } from '@growi/hackmd';
|
|
|
+import { stylesCSS, stylesJS, agentJS } from '@growi/hackmd';
|
|
|
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
@@ -62,7 +62,7 @@ module.exports = function(crowi, app) {
|
|
|
};
|
|
|
|
|
|
// inject origin to script
|
|
|
- const script = ejs.render(agent, definitions);
|
|
|
+ const script = ejs.render(agentJS, definitions);
|
|
|
|
|
|
res.set('Content-Type', 'application/javascript');
|
|
|
res.send(script);
|
|
|
@@ -84,7 +84,7 @@ module.exports = function(crowi, app) {
|
|
|
styles: stylesCSS,
|
|
|
};
|
|
|
// inject styles to script
|
|
|
- const script = ejs.render(styles, definitions);
|
|
|
+ const script = ejs.render(stylesJS, definitions);
|
|
|
|
|
|
res.set('Content-Type', 'application/javascript');
|
|
|
res.send(script);
|