Fix bug when opening save panel for sprite with performance problem

This commit is contained in:
juliandescottes 2017-01-09 09:10:20 +01:00
parent 4c6d2c1e48
commit 2cdc999875

View File

@ -53,9 +53,10 @@
};
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');
document.querySelector('.save-online-status').innerHTML = warningPartial;
saveToGalleryStatus.innerHTML = warningPartial;
}
};