aboutsummaryrefslogtreecommitdiffstats
path: root/js/craftmine.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/craftmine.js')
-rw-r--r--js/craftmine.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/craftmine.js b/js/craftmine.js
index fa70809..e88d84c 100644
--- a/js/craftmine.js
+++ b/js/craftmine.js
@@ -86,6 +86,12 @@ function updateMine() {
updateData("mine");
}
+function resetGame() {
+ sendRequest("craftmine.php", "op=resetGame", function() {
+ initCraftMine()
+ });
+}
+
function init() {
initCraftMine();
changeTab(); // Switch to tab specified in URL