illogic?
This commit is contained in:
parent
65a1c2f4b7
commit
216ec64495
|
|
@ -1,7 +1,8 @@
|
|||
var modName = "mods/save_loading.js";
|
||||
|
||||
try {
|
||||
rebuildCurrentPixels ??= function() {
|
||||
if(typeof(rebuildCurrentPixels) !== "function") {
|
||||
rebuildCurrentPixels = function() {
|
||||
var currPix = []; //rebuild currentPixels from pixelMap to try to fix bug
|
||||
for(pmi = 0; pmi < pixelMap.length; pmi++) {
|
||||
var pixelMapPart = pixelMap[pmi];
|
||||
|
|
@ -16,6 +17,7 @@ try {
|
|||
};
|
||||
currentPixels = currPix;
|
||||
};
|
||||
};
|
||||
|
||||
//https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API
|
||||
function storageAvailable(type) {
|
||||
|
|
@ -512,5 +514,5 @@ Pixel size (rendering only): <input id="pixelSize"> (Use if the save looks cut o
|
|||
});
|
||||
|
||||
} catch (error) {
|
||||
alert(`save_loading error: ${error.message}`);
|
||||
alert(`save_loading error: ${error.toString()}`);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue