File: shiny-testmode.js

package info (click to toggle)
r-cran-shiny 1.5.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,224 kB
  • sloc: javascript: 17,081; sh: 28; makefile: 21
file content (8 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
// Listen for messages from parent frame. This file is only added when the
// shiny.testmode option is TRUE.
window.addEventListener("message", function(e) {
  var message = e.data;

  if (message.code)
    eval(message.code);
});