mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix bug when opening save panel for sprite with performance problem
This commit is contained in:
parent
4c6d2c1e48
commit
2cdc999875
@ -53,9 +53,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ns.SaveController.prototype.updateSaveToGalleryMessage_ = function (spritesheetSize) {
|
ns.SaveController.prototype.updateSaveToGalleryMessage_ = function (spritesheetSize) {
|
||||||
if (pskl.app.performanceReportService.hasProblem()) {
|
var saveToGalleryStatus = document.querySelector('.save-online-status');
|
||||||
|
if (saveToGalleryStatus && pskl.app.performanceReportService.hasProblem()) {
|
||||||
var warningPartial = pskl.utils.Template.get('save-gallery-warning-partial');
|
var warningPartial = pskl.utils.Template.get('save-gallery-warning-partial');
|
||||||
document.querySelector('.save-online-status').innerHTML = warningPartial;
|
saveToGalleryStatus.innerHTML = warningPartial;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user