only send requried information across wire to browser for showcase mode

This commit is contained in:
Barret Schloerke
2019-08-26 10:52:27 -04:00
parent b07e553b9e
commit eb55c256c7
2 changed files with 9 additions and 4 deletions

View File

@@ -117,7 +117,7 @@
// If this is the main Shiny window, wire up our custom message handler.
if (window.Shiny) {
Shiny.addCustomMessageHandler('reactlog', function(message) {
Shiny.addCustomMessageHandler('showcase-src', function(message) {
if (message.srcref && message.srcfile) {
highlightSrcref(message.srcref, message.srcfile);
}
@@ -267,4 +267,3 @@
if (window.hljs)
hljs.initHighlightingOnLoad();
})();