@cocreate/pwa 1.2.0 → 1.2.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.2.1](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.2.0...v1.2.1) (2022-09-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump [@cocreate](https://github.com/cocreate) dependencies ([0d2963e](https://github.com/CoCreate-app/CoCreate-pwa/commit/0d2963efe72c1d72709af962adc8155026418b6a))
7
+ * config renameed to CoCreateConfig ([3a250fd](https://github.com/CoCreate-app/CoCreate-pwa/commit/3a250fdec212b81a565a5e56e09a4c3a10aba70b))
8
+
1
9
  # [1.2.0](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.1.1...v1.2.0) (2022-09-28)
2
10
 
3
11
 
package/docs/index.html CHANGED
@@ -121,7 +121,7 @@
121
121
  </div>
122
122
  </div>
123
123
  <script>
124
- var config = {
124
+ var CoCreateConfig = {
125
125
  apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
126
126
  securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265',
127
127
  organization_Id: '5de0387b12e200ea63204d6c'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/pwa",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A simple pwa component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "pwa",
@@ -60,6 +60,6 @@
60
60
  "webpack-log": "^3.0.1"
61
61
  },
62
62
  "dependencies": {
63
- "@cocreate/docs": "^1.0.3"
63
+ "@cocreate/docs": "1.3.9"
64
64
  }
65
65
  }
package/src/index.js CHANGED
@@ -60,8 +60,8 @@ async function persistData() {
60
60
 
61
61
  if ('serviceWorker' in navigator) {
62
62
  let workerPath = '/sw.js'
63
- if (window.config && window.config.serviceWorker) {
64
- workerPath = window.config.serviceWorker
63
+ if (window.CoCreateConfig && window.CoCreateConfig.serviceWorker) {
64
+ workerPath = window.CoCreateConfig.serviceWorker
65
65
  window.localStorage.setItem("serviceWorker", workerPath);
66
66
  } else {
67
67
  workerPath = window.localStorage.getItem("serviceWorker")