@situm/cordova 3.5.2 → 3.5.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@situm/cordova",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "description": "Situm Wayfinding for Capacitor and Cordova. Integrate plug&play indoor navigation experience with floorplans, POIs, routes and turn-by-turn directions in no time. With the power of Situm.",
5
5
  "private": false,
6
6
  "repository": "https://github.com/situmtech/cordova",
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  id="@situm/cordova"
5
- version="3.5.2">
5
+ version="3.5.3">
6
6
  <name>Situm Cordova plugin Official</name>
7
7
  <description>This is the stable branch.</description>
8
8
  <license>MIT</license>
package/www/map-view.js CHANGED
@@ -12,10 +12,10 @@ const MapViewController = require('./map-view-controller');
12
12
  * remote-identifier="YOUR_REMOTE_IDENTIFIER"
13
13
  * /&gt;
14
14
  * </pre>
15
- *
15
+ *
16
16
  * <button id="copySnippetButton">Copy</button>
17
17
  * </div>
18
- *
18
+ *
19
19
  * <script>
20
20
  document.getElementById("copySnippetButton").addEventListener("click", function() {
21
21
  var textToCopy = document.getElementById("textToCopy");
@@ -87,9 +87,15 @@ class MapView extends HTMLElement {
87
87
  let viewerDomain = this._formatValidDomain(
88
88
  this.getAttribute('viewer-domain')
89
89
  );
90
- let situmApiKey = this.getAttribute('situm-api-key') ?? '';
91
- let buildingIdentifier = this.getAttribute('building-identifier') ?? '';
92
- let language = this.getAttribute('language') ?? '';
90
+ let situmApiKey = this.getAttribute('situm-api-key')
91
+ ? this.getAttribute('situm-api-key')
92
+ : '';
93
+ let buildingIdentifier = this.getAttribute('building-identifier')
94
+ ? this.getAttribute('building-identifier')
95
+ : '';
96
+ let language = this.getAttribute('language')
97
+ ? this.getAttribute('language')
98
+ : '';
93
99
 
94
100
  let situmApiKeyQP = situmApiKey.length > 0 ? `apikey=${situmApiKey}` : '';
95
101
  let buildingIdentifierQP =