@microdrop/models
Version:
24 lines (20 loc) • 721 B
HTML
<html>
<head>
<title>Electrodes</title>
</head>
<body>
<script>
const pkginfo = require('pkginfo')(module);
const {ipcRenderer} = require('electron');
const ElectrodesModel = require('../ElectrodesModel.js');
const appname = host = n = undefined;
const version = module.exports.version;
ipcRenderer.on('ports', (e, data) => {
const {mqtt_tcp_port, http_port} = JSON.parse(data);
let storageUrl = `http://localhost:${http_port}`;
const options = {storageUrl: storageUrl, resubscribe: false};
model = new ElectrodesModel(appname, host, mqtt_tcp_port, n, version, options);
});
</script>
</body>
</html>