We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2051a28 commit cad5dfeCopy full SHA for cad5dfe
planet/js/Planet.js
@@ -55,9 +55,13 @@ class Planet {
55
};
56
57
open(image) {
58
- this.LocalPlanet.setCurrentProjectImage(image);
59
- this.LocalPlanet.updateProjects();
60
- this.oldCurrentProjectID = this.ProjectStorage.getCurrentProjectID();
+ if (this.LocalPlanet === null) {
+ console.log("Local Planet unavailable");
+ } else {
61
+ this.LocalPlanet.setCurrentProjectImage(image);
62
+ this.LocalPlanet.updateProjects();
63
+ this.oldCurrentProjectID = this.ProjectStorage.getCurrentProjectID();
64
+ }
65
66
67
saveLocally(data, image) {
0 commit comments