mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
Fixing #224 - twister in subdir
This commit is contained in:
parent
104986c808
commit
11bef01ac4
@ -10,7 +10,7 @@
|
||||
function twisterRpc(method, params, resultFunc, resultArg, errorFunc, errorArg) {
|
||||
// removing hardcoded username from javascript: please use url http://user:pwd@localhost:28332 instead
|
||||
//var foo = new $.JsonRpcClient({ ajaxUrl: '/', username: 'user', password: 'pwd'});
|
||||
var foo = new $.JsonRpcClient({ ajaxUrl: '/' });
|
||||
var foo = new $.JsonRpcClient({ ajaxUrl: window.location.pathname.replace(/[^\/]*$/, '') });
|
||||
foo.call(method, params,
|
||||
function(ret) { resultFunc(resultArg, ret); },
|
||||
function(ret) { if(ret != null) errorFunc(errorArg, ret); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user