mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-08 05:35:07 -05:00
9 lines
231 B
JavaScript
9 lines
231 B
JavaScript
// 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);
|
|
});
|