mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-05 12:15:14 -05:00
* Reactlog shortcut was broken due to reactlog.js not being included in the gruntfile * Reactlog has always shown every reactive event since the beginning of the process (or at least since options(shiny.reactlog=TRUE)). This commit makes it so Ctrl+F3 invocation only shows reactives that either belong to no session (e.g. observers and reactives declared at the top of server.R), or belong to this session.
9 lines
319 B
JavaScript
9 lines
319 B
JavaScript
$(document).on('keydown', function(e) {
|
|
if (e.which !== 114 || (!e.ctrlKey && !e.metaKey) || (e.shiftKey || e.altKey))
|
|
return;
|
|
var url = 'reactlog?w=' + window.escape(exports.shinyapp.config.workerId) +
|
|
"&s=" + window.escape(exports.shinyapp.config.sessionId);
|
|
window.open(url);
|
|
e.preventDefault();
|
|
});
|