Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /* globals confirm, atob, btoa, alert */ |
||
43 | ct.exportSave = function(player) { |
||
44 | let exportText = btoa(JSON.stringify(player)); |
||
45 | let blob = new Blob([exportText], { |
||
|
|||
46 | type: 'text/plain' |
||
47 | }); |
||
48 | let url = $window.URL || $window.webkitURL; |
||
49 | let fileUrl = url.createObjectURL(blob); |
||
50 | let a = document.createElement('a'); |
||
51 | a.href = fileUrl; |
||
52 | a.download = "nucleogenesis-save.txt"; |
||
53 | a.click(); |
||
54 | url.revokeObjectURL(fileUrl); |
||
55 | }; |
||
56 | } |
||
57 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.