Browse Source

Temporary disabled ngrok (share live URL option)

master
Roman Axelrod 1 year ago
parent
commit
bcad45d1e8
  1. 6
      server.js

6
server.js

@ -38,7 +38,7 @@ import {
import PluginError from 'plugin-error'; import PluginError from 'plugin-error';
import {Server} from "socket.io"; import {Server} from "socket.io";
import {createServer} from 'http'; import {createServer} from 'http';
import {authtoken, connect} from "ngrok"; // import {authtoken, connect} from "ngrok";
import bodyParser from "body-parser"; import bodyParser from "body-parser";
/** /**
@ -569,8 +569,8 @@ async function getShareableUrl() {
let url; let url;
try { try {
await authtoken(data.ngrokApiToken); // await authtoken(data.ngrokApiToken);
url = await connect(port); // url = await connect(port);
} catch (e) { } catch (e) {
console.log('Error:', `Can't connect to ngrok, probably wrong token.`); console.log('Error:', `Can't connect to ngrok, probably wrong token.`);
} }

Loading…
Cancel
Save