@saltcorn/mobile-app 1.6.0-beta.4 → 1.6.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saltcorn/mobile-app",
3
3
  "displayName": "Saltcorn mobile app",
4
- "version": "1.6.0-beta.4",
4
+ "version": "1.6.0-beta.5",
5
5
  "description": "Saltcorn mobile app for Android and iOS",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -8,6 +8,9 @@ export const getHeaders = () => {
8
8
  const config = state.mobileConfig;
9
9
  const versionTag = config.version_tag;
10
10
  const stdHeaders = [
11
+ {
12
+ headerTag: `<script>var _sc_version_tag = "${versionTag}";</script>`,
13
+ },
11
14
  { css: `static_assets/${versionTag}/saltcorn.css` },
12
15
  { css: `static_assets/${versionTag}/saltcorn-mobile.css` },
13
16
  { script: `static_assets/${versionTag}/saltcorn-common.js` },
@@ -995,7 +995,7 @@ function removeLoadSpinner() {
995
995
  if (count === 0) spinner.remove();
996
996
  else spinner.attr("spinner-count", count);
997
997
  }
998
- reset_spinners();
998
+ if (typeof reset_spinners === "function") reset_spinners();
999
999
  }
1000
1000
  }
1001
1001