aboutsummaryrefslogtreecommitdiff
path: root/src/js/Botleagues.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/Botleagues.js')
-rw-r--r--src/js/Botleagues.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/Botleagues.js b/src/js/Botleagues.js
index fd8ed21..efc56d8 100644
--- a/src/js/Botleagues.js
+++ b/src/js/Botleagues.js
@@ -19,4 +19,8 @@ Botleagues.request = function(user_options, callback) {
delete options['endpoint'];
jQuery.ajax(url, options);
+};
+
+Botleagues.redirect = function(user_options) {
+ window.location = Botleagues.url + '/' + user_options['endpoint'];
}; \ No newline at end of file