Commit fcb89ec7 authored by Thimo Kraemer's avatar Thimo Kraemer

Fixed bug if endpoint is not specified

parent 6b49c55b
/*
* KSS-RPC v0.7-beta
* KSS-RPC v0.8-beta
*
* Copyright (c) 2017, joonis new media
* Author: Thimo Kraemer <thimo.kraemer@joonis.de>
......@@ -61,7 +61,7 @@
******************************************************************************************/
var kss = {
version: '0.7-beta',
version: '0.8-beta',
_initialized: false,
_ruleSheets: {},
_eventBinders: {},
......@@ -74,7 +74,7 @@ var kss = {
logging: 'warn',
config: {
protocol: 'json-rpc', /* json-rpc | xml-rpc | url-encoded | json */
endpoint: '',
endpoint: '.',
dateEncoding: 'iso8601', /* @timestamp@ | asp.net | class-hinting */
timeout: 10000,
csrfSelector: null,
......@@ -938,7 +938,7 @@ kss.toQueryString = function(params) {
kss.RPC = function(endpoint, options) {
this._endpoint = endpoint;
this._endpoint = endpoint || '.';
// Set options
options = options || {}
// Protocol
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment