diff --git a/resources/docs/docs/remote-control.md b/resources/docs/docs/remote-control.md index 1184f3a6..a1799e1f 100644 --- a/resources/docs/docs/remote-control.md +++ b/resources/docs/docs/remote-control.md @@ -223,3 +223,10 @@ Open the tabs designated by the id parameters. #### `/SCRIPT code` Run code as if it where executed by a script widget. + + +---- + +#### `/RELOAD` + +Reload page in the browser. diff --git a/src/client/remote-control.js b/src/client/remote-control.js index a7b29c16..ed04c3e4 100644 --- a/src/client/remote-control.js +++ b/src/client/remote-control.js @@ -291,6 +291,11 @@ var callbacks = { uiConsole.script.run({input_code: args[0]}, {sync: true, send: true}) + }, + '/RELOAD': function(args) { + + window.location.href = window.location.href + } }