Commit 77f1e729 authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Split into the split screen mode for easy testing

parent 9df68d17
......@@ -10,7 +10,7 @@ export default class Peer {
constructor(qrChannel: QrChannel, onLog: (system: string, message: string) => void) {
this.qrChannel = qrChannel;
this.onLog = onLog;
window.setInterval(this.cycle.bind(this), 100);
window.setInterval(this.cycle.bind(this), 300);
}
public async start() {
......
......@@ -2,7 +2,10 @@
## Running
`yarn start`
```sh
yarn start
start index.html
```
## Testing
......
<!DOCTYPE html>
<html>
<html style="display: flex; height: 100%;">
<head>
<meta charset="utf" />
<title>WebRTC Demo</title>
<script src="index.tsx"></script>
<link href="index.css" rel="stylesheet" />
<title>WebRTC demo</title>
</head>
<body>
<body style="display: flex; flex: 1; margin: 0;">
<iframe src="http://localhost:1234/" style="border: none; flex: 1;"></iframe>
<iframe src="http://localhost:1234/" style="border: none; flex: 1;"></iframe>
</body>
</html>
......@@ -3,7 +3,7 @@
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "parcel index.html --open",
"start": "parcel peer.html",
"test": "parcel spike.html --open",
"build": "parcel build index.html --public-url ."
},
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf" />
<title>WebRTC Demo</title>
<script src="peer.tsx"></script>
<link href="peer.css" rel="stylesheet" />
</head>
<body></body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment