Comparing version 0.1.6 to 0.1.7
@@ -143,3 +143,3 @@ var http = require("http"); | ||
if (toolsConf && toolsConf.showTools) { | ||
const $ = cheerio.load(fs.readFileSync('./tools/tools.html', "utf-8")); | ||
const $ = cheerio.load(fs.readFileSync(path.join(__dirname ,'/tools/tools.html'), "utf-8")); | ||
@@ -228,3 +228,2 @@ toolstart() | ||
toolsConf && toolsConf.weinre && startWeinre(toolsConf.weinre); | ||
// toolsConf && toolsConf.qrcode && createQRcode(realPath, ext, res, toolsConf.qrcode); | ||
@@ -231,0 +230,0 @@ } |
@@ -37,3 +37,3 @@ { | ||
"scripts": {}, | ||
"version": "0.1.6" | ||
"version": "0.1.7" | ||
} |
const cheerio = require('cheerio'); | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
var getIP = require("../getIP"); | ||
@@ -14,3 +15,3 @@ var QRCode = require('qrcode'); | ||
const qrImg = `<img src="${url}">`; | ||
const $ = cheerio.load(fs.readFileSync('./tools/createQRcode/createQRcode.html', "utf-8")); | ||
const $ = cheerio.load(fs.readFileSync(path.join(__dirname ,'/createQRcode.html')), "utf-8"); | ||
$('.bird-tools_qrcode-content').append(qrImg); | ||
@@ -17,0 +18,0 @@ content += $.html(); |
const cheerio = require('cheerio'); | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
@@ -9,3 +10,3 @@ /** | ||
return new Promise((resolve, reject) => { | ||
const $ = cheerio.load(fs.readFileSync('./tools/reload/reload.html', "utf-8")); | ||
const $ = cheerio.load(fs.readFileSync(path.join(__dirname ,'/reload.html')), "utf-8"); | ||
content += $.html(); | ||
@@ -12,0 +13,0 @@ resolve(content); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
636
38823