@osfarm/itineraire-technique 1.2.3 → 1.2.4

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/js/editor-main.js CHANGED
@@ -312,18 +312,18 @@ class TikaEditor {
312
312
  const self = this;
313
313
  $(document).ready(function() {
314
314
  // If we are in a wiki (the domain contains "tripleperformance.ag or tripleperformance.fr" then show the Wiki buttons
315
- if (window.location.hostname.includes("tripleperformance.ag") || window.location.hostname.includes("tripleperformance.fr")) {
315
+ if ((window.location.hostname.includes("itinera") || window.location.hostname.includes("localhost"))
316
+ && window.location.search.includes("itinera") ) {
316
317
 
317
- // Hide NonWikiButtons
318
- self.editorLoader = new WikiLoader(self);
318
+ // If we are in Itinera - the domain is *.itinera.ag or localhost with a itinera param
319
+ self.editorLoader = new ItineraLoader(self);
319
320
  self.editorLoader.setupButtons();
320
321
  self.editorLoader.loadPageFromURL();
321
322
 
322
- } else if (window.location.hostname.includes("itinera.ag") ||
323
- (window.location.hostname.includes("localhost") && window.location.search.includes("itinera")) ) {
323
+ } else if (window.location.hostname.includes("tripleperformance.ag") || window.location.hostname.includes("tripleperformance.fr")) {
324
324
 
325
- // If we are in Itinera - the domain is *.itinera.ag or localhost with a itinera param
326
- self.editorLoader = new ItineraLoader(self);
325
+ // Hide NonWikiButtons
326
+ self.editorLoader = new WikiLoader(self);
327
327
  self.editorLoader.setupButtons();
328
328
  self.editorLoader.loadPageFromURL();
329
329
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osfarm/itineraire-technique",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A visualisation tool to show agricultural technical itineraries based on Echarts",
5
5
  "main": "editor.html",
6
6
  "scripts": {