@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.
- package/nodes/15-screenshot.html +4 -1
- package/package.json +1 -1
package/nodes/15-screenshot.html
CHANGED
|
@@ -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
|
-
|
|
257
|
+
complete: (data) => {
|
|
258
|
+
RED.notify("Screenshot posted", { type: "success" });
|
|
259
|
+
},
|
|
257
260
|
dataType: "image/svg+xml;charset=utf-8"
|
|
258
261
|
});
|
|
259
262
|
});
|