@gregoriusrippenstein/node-red-contrib-introspection 0.1.4 → 0.1.6

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.
@@ -24,8 +24,7 @@
24
24
  RED.sidebar.info.show()
25
25
  }, 1000);
26
26
 
27
- // a random value of 890px to indicate mobile, is very arbitrary.
28
- if ( window.matchMedia('only screen and (max-width: 890px)').matches ) {
27
+ if ( (RED.utils.getBrowserInfo().mobile > 0) || window.matchMedia('only screen and (max-width: 890px)').matches ) {
29
28
  setTimeout( function() {
30
29
  // taken from https://discourse.nodered.org/t/togglepalette-v-togglesidebar/78169/3
31
30
  RED.actions.invoke("core:toggle-palette", false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "keywords": [
5
5
  "node-red"
6
6
  ],