diff --git a/src/js/controller/settings/SaveController.js b/src/js/controller/settings/SaveController.js index e1fcf68..4ea4523 100644 --- a/src/js/controller/settings/SaveController.js +++ b/src/js/controller/settings/SaveController.js @@ -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; } };