| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict'; |
||
| 13 | ct.reset = function (ask) { |
||
| 14 | let confirmation = true; |
||
| 15 | if (ask) { |
||
| 16 | confirmation = confirm('Are you sure you want to reset? This will permanently erase your progress.'); |
||
| 17 | } |
||
| 18 | |||
| 19 | if (confirmation === true) { |
||
| 20 | localStorage.removeItem('playerStoredITE'); |
||
| 21 | savegame.initSave(); |
||
| 22 | } |
||
| 23 | }; |
||
| 24 | |||
| 40 |