mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-02-20 11:42:36 +01:00
Remove for now
This commit is contained in:
parent
f19494f9f9
commit
36e2c0f126
@ -1,34 +1,34 @@
|
||||
import { request as httpsRequest } from 'https';
|
||||
|
||||
function install()
|
||||
{
|
||||
try
|
||||
{
|
||||
const params = {};
|
||||
return;
|
||||
// try
|
||||
// {
|
||||
// const params = {};
|
||||
|
||||
params['packageName'] = process.env.npm_package_name;
|
||||
params['packageVersion'] = process.env.npm_package_version;
|
||||
// params['packageName'] = process.env.npm_package_name;
|
||||
// params['packageVersion'] = process.env.npm_package_version;
|
||||
|
||||
const data = JSON.stringify(params);
|
||||
const request = httpsRequest({
|
||||
hostname: 'install.nitrots.co',
|
||||
port: 443,
|
||||
path: '/collect',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Content-Length': data.length
|
||||
}
|
||||
});
|
||||
// const data = JSON.stringify(params);
|
||||
// const request = httpsRequest({
|
||||
// hostname: 'install.nitrots.co',
|
||||
// port: 443,
|
||||
// path: '/collect',
|
||||
// method: 'POST',
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// 'Content-Length': data.length
|
||||
// }
|
||||
// });
|
||||
|
||||
request.write(data);
|
||||
request.end();
|
||||
}
|
||||
// request.write(data);
|
||||
// request.end();
|
||||
// }
|
||||
|
||||
catch (e)
|
||||
{
|
||||
//
|
||||
}
|
||||
// catch (e)
|
||||
// {
|
||||
// //
|
||||
// }
|
||||
}
|
||||
|
||||
install();
|
||||
|
Loading…
x
Reference in New Issue
Block a user