mirror of
https://github.com/koush/scrypted.git
synced 2026-06-22 01:20:26 +01:00
sdk: remove unnecessary param in debug request
This commit is contained in:
@@ -138,12 +138,11 @@ exports.debug = function (debugHost, entryPoint) {
|
||||
debugHost = toIpAndPort(debugHost);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const outFilename = entryPoint || 'main.nodejs.js';
|
||||
var packageJson = path.resolve(process.cwd(), 'package.json');
|
||||
packageJson = JSON.parse(fs.readFileSync(packageJson));
|
||||
const npmPackage = packageJson.name || '';
|
||||
|
||||
const debugUrl = `https://${debugHost}/web/component/script/debug?filename=${outFilename}&npmPackage=${npmPackage}`
|
||||
const debugUrl = `https://${debugHost}/web/component/script/debug?npmPackage=${npmPackage}`
|
||||
console.log(`initiating debugger on ${debugHost}`);
|
||||
|
||||
axios.post(debugUrl, undefined, {
|
||||
|
||||
Reference in New Issue
Block a user