correct a ton of path syntax

This commit is contained in:
sparks-alec
2022-05-07 01:27:37 -04:00
parent 2b7db257ed
commit d40f2ac7ee
6 changed files with 28 additions and 22 deletions
+2 -1
View File
@@ -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){
+2 -1
View File
@@ -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`)));
%>