virtual-keypad 5.14.0 → 5.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-keypad",
3
- "version": "5.14.0",
3
+ "version": "5.14.3",
4
4
  "description": "User response at a distance. Simple utility to summon forth a virtual keypad webapp.",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
package/src/keypad.css CHANGED
@@ -18,7 +18,7 @@
18
18
  #keypad-header {
19
19
  height: 100%;
20
20
  font-size: 1.5rem;
21
- font-weight: 700;
21
+ font-weight: normal;
22
22
  text-align: center;
23
23
 
24
24
  grid-row: 1;
package/src/keypadPeer.js CHANGED
@@ -95,9 +95,13 @@ export class KeypadPeer {
95
95
  onPeerDisconnected = () => {
96
96
  this.displayUpdate(this.onErrorReconnectMessage);
97
97
  // Workaround for peer.reconnect deleting previous id
98
- this.peer.id = this.lastPeerId;
99
- this.peer._lastServerId = this.lastPeerId;
100
- this.peer.reconnect();
98
+ try {
99
+ this.peer.id = this.lastPeerId;
100
+ this.peer._lastServerId = this.lastPeerId;
101
+ this.peer.reconnect();
102
+ } catch (e) {
103
+ console.log(e);
104
+ }
101
105
  };
102
106
  onPeerClose = () => {
103
107
  this.displayUpdate("Connection closed");