Skip to content

Commit

Permalink
Testing workaround for https keepalive problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jguille2 committed Dec 5, 2023
1 parent 4f190bf commit b8a570f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions run/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@
world = new WorldMorph(document.getElementById('world'));

// keeping Alive... we need to ask to the plugin side continuosly
world.Arduino.keepAlive = true;

if (window.location.protocol === 'https') {
world.Arduino.keepAlive = false;
} else {
world.Arduino.keepAlive = true;
}
ide = new IDE_Morph();
ide.openIn(world);

Expand Down

0 comments on commit b8a570f

Please sign in to comment.