Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidM42 committed Aug 18, 2017
1 parent 1ae3691 commit 39f6839
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpcWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ let config = {
url: null,
userName: null,
password: null,
servername: null,
};

let info = {};
Expand All @@ -76,6 +77,7 @@ function url(schoolname) {


function setupWithObject(options) {
if(options.servername) config.servername = options.servername;
if(options.schoolName) config.url = url(options.schoolName);
if(options.username) config.userName = options.username;
if(options.password) config.password = options.password;
Expand Down Expand Up @@ -112,7 +114,7 @@ function rpc(method, params, cb) {


let concatHostname = config.servername + ".webuntis.com";

let options = {
method: "POST",
hostname: concatHostname,
Expand Down

0 comments on commit 39f6839

Please sign in to comment.