easter-egg-quest 1.0.23 → 1.0.24
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.
|
@@ -3716,9 +3716,11 @@ const _ResultsRenderer = class _ResultsRenderer {
|
|
|
3716
3716
|
panel.classList.add("eeq-results-visible");
|
|
3717
3717
|
});
|
|
3718
3718
|
});
|
|
3719
|
-
(_a2 = this.shadow.querySelector(".eeq-btn-finish")) == null ? void 0 : _a2.addEventListener("click", () => {
|
|
3719
|
+
(_a2 = this.shadow.querySelector(".eeq-btn-finish")) == null ? void 0 : _a2.addEventListener("click", (event) => {
|
|
3720
3720
|
var _a3;
|
|
3721
|
-
|
|
3721
|
+
event.preventDefault();
|
|
3722
|
+
event.stopPropagation();
|
|
3723
|
+
(_a3 = this._onFinish) == null ? void 0 : _a3.call(this);
|
|
3722
3724
|
});
|
|
3723
3725
|
(_b2 = this.shadow.querySelector(".eeq-btn-share")) == null ? void 0 : _b2.addEventListener("click", () => this._copyShareImage(score));
|
|
3724
3726
|
}
|
|
@@ -5714,7 +5716,7 @@ class GameController {
|
|
|
5714
5716
|
() => {
|
|
5715
5717
|
this.persistence.markCompleted();
|
|
5716
5718
|
this.destroy();
|
|
5717
|
-
|
|
5719
|
+
this._reloadPage();
|
|
5718
5720
|
}
|
|
5719
5721
|
);
|
|
5720
5722
|
(_c = (_b2 = this.config.callbacks).onComplete) == null ? void 0 : _c.call(_b2, score);
|
|
@@ -5762,6 +5764,17 @@ class GameController {
|
|
|
5762
5764
|
_wait(ms) {
|
|
5763
5765
|
return new Promise((r) => setTimeout(r, ms));
|
|
5764
5766
|
}
|
|
5767
|
+
_reloadPage() {
|
|
5768
|
+
try {
|
|
5769
|
+
window.location.reload();
|
|
5770
|
+
return;
|
|
5771
|
+
} catch {
|
|
5772
|
+
}
|
|
5773
|
+
try {
|
|
5774
|
+
window.location.assign(window.location.href);
|
|
5775
|
+
} catch {
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5765
5778
|
}
|
|
5766
5779
|
let _instance = null;
|
|
5767
5780
|
const EasterEggQuest = {
|