Skip to content

Commit

Permalink
Make cloud variable errors non-critical
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Nov 12, 2023
1 parent d1fa8ae commit 51a63c0
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/packager/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1301,14 +1301,18 @@ cd "$(dirname "$0")"
scaffolding.setUsername(${JSON.stringify(this.options.username)}.replace(/#/g, () => Math.floor(Math.random() * 10)));
scaffolding.setAccentColor(${JSON.stringify(this.options.appearance.accent)});
${this.options.cloudVariables.mode === 'ws' ?
`scaffolding.addCloudProvider(${this.makeWebSocketProvider()})` :
this.options.cloudVariables.mode === 'local' ?
`scaffolding.addCloudProvider(${this.makeLocalStorageProvider()})` :
this.options.cloudVariables.mode === 'custom' ?
this.makeCustomProvider() :
''
};
try {
${this.options.cloudVariables.mode === 'ws' ?
`scaffolding.addCloudProvider(${this.makeWebSocketProvider()})` :
this.options.cloudVariables.mode === 'local' ?
`scaffolding.addCloudProvider(${this.makeLocalStorageProvider()})` :
this.options.cloudVariables.mode === 'custom' ?
this.makeCustomProvider() :
''
};
} catch (error) {
console.error(error);
}
${this.options.controls.greenFlag.enabled ? `
const greenFlagButton = document.createElement('img');
Expand Down

0 comments on commit 51a63c0

Please sign in to comment.