@gregoriusrippenstein/node-red-contrib-introspection 0.0.7 → 0.0.8

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.
@@ -248,12 +248,15 @@
248
248
  if ( !window[functName] ) {
249
249
  window[functName] = (e,m) => {
250
250
  if ( m.msg == "timer-tripped" ) {
251
+ RED.notify("Screenshot triggered", { type: "warning" });
251
252
  nr_intro_generate_svg( (svgdata) => {
252
253
  $.ajax({
253
254
  type: "POST",
254
255
  url: "/screenshot",
255
256
  data: { d: svgdata },
256
- success: (data) => {},
257
+ complete: (data) => {
258
+ RED.notify("Screenshot posted", { type: "success" });
259
+ },
257
260
  dataType: "image/svg+xml;charset=utf-8"
258
261
  });
259
262
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "keywords": [
5
5
  "node-red"
6
6
  ],