Skip to content

Commit 4fa2c16

Browse files
committed
Increased limit for reload protection to avoid edge cases.
1 parent a6e4fb5 commit 4fa2c16

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coding-with-chrome",
3-
"version": "10.7.0",
3+
"version": "10.7.1",
44
"description": "Educational Coding Development Environment",
55
"repository": {
66
"type": "git",

src/frameworks/phaser/phaser_helper.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ class PhaserHelper {
6262
* @return {boolean}
6363
*/
6464
checkReloadProtection(id) {
65-
if (window.phaserReloadProtection[id] < 5) {
65+
if (typeof window.phaserReloadProtection[id] === 'undefined') {
66+
window.phaserReloadProtection[id] = 0;
67+
}
68+
if (window.phaserReloadProtection[id] < 30) {
6669
window.phaserReloadProtection[id] = window.phaserReloadProtection[id] + 1;
6770
return true;
6871
} else {

src/frameworks/phaser/phaser_helper.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)