mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-12 17:23:38 +00:00
correct a ton of path syntax
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
exports.defaultName = 'ETC Eos';
|
||||
exports.connectionType = 'osc';
|
||||
@@ -132,7 +133,7 @@ exports.data = function data(device, osc) {
|
||||
};
|
||||
|
||||
|
||||
const cueTemplate = _.template(fs.readFileSync(`./plugins/eos/cue.ejs`));
|
||||
const cueTemplate = _.template(fs.readFileSync(path.join(__dirname, `cue.ejs`)));
|
||||
|
||||
exports.update = function update(device, doc, updateType, data){
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
|
||||
<%
|
||||
const fs = require('fs');
|
||||
let cueTemplate = _.template(fs.readFileSync(`./plugins/eos/cue.ejs`));
|
||||
const path = require('path');
|
||||
let cueTemplate = _.template(fs.readFileSync(path.join(__dirname, `/plugins/eos/cue.ejs`)));
|
||||
%>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user