diff --git a/.github/workflows/deploy-master.yml b/.github/workflows/deploy-master.yml
index e23ee31ca..ac50bbf0b 100644
--- a/.github/workflows/deploy-master.yml
+++ b/.github/workflows/deploy-master.yml
@@ -1,5 +1,8 @@
name: Deploy master
+env:
+ FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
+
on:
push:
branches:
diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml
index f03b684fb..160c3ae76 100644
--- a/.github/workflows/deploy-release.yml
+++ b/.github/workflows/deploy-release.yml
@@ -1,5 +1,8 @@
name: Deploy release
+env:
+ FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
+
on:
push:
branches:
diff --git a/build/pre-build.js b/build/pre-build.js
index fce54bf4d..f43d53b02 100644
--- a/build/pre-build.js
+++ b/build/pre-build.js
@@ -5,3 +5,11 @@ const browserslist = require("browserslist-useragent-regexp");
const userAgentRegExp = browserslist.getUserAgentRegExp({ allowHigherVersions: true });
const checkFunction = `export const supportedBrowsers = ${userAgentRegExp};`;
fs.writeFileSync(path.resolve(__dirname, "../src/supported-browsers.js"), checkFunction);
+
+const firebaseConfig = process.env.FIREBASE_CONFIG;
+if (firebaseConfig) {
+ fs.writeFileSync(
+ path.resolve(__dirname, "../src/core/storage/firebase-config.js"),
+ `export const firebaseConfig = ${firebaseConfig};`
+ );
+}
diff --git a/src/components/tabs/options-saving/OptionsSavingTab.vue b/src/components/tabs/options-saving/OptionsSavingTab.vue
index 7dabf6e84..b1dad31fc 100644
--- a/src/components/tabs/options-saving/OptionsSavingTab.vue
+++ b/src/components/tabs/options-saving/OptionsSavingTab.vue
@@ -18,6 +18,7 @@ export default {
},
data() {
return {
+ cloudAvailable: false,
cloudEnabled: false,
forceCloudOverwrite: false,
showCloudModal: false,
@@ -70,6 +71,7 @@ export default {
methods: {
update() {
const options = player.options;
+ this.cloudAvailable = Cloud.isAvailable;
this.cloudEnabled = options.cloudEnabled;
this.forceCloudOverwrite = options.forceCloudOverwrite;
this.showCloudModal = options.showCloudModal;
@@ -209,7 +211,10 @@ export default {