Skip to content

Commit

Permalink
Fix url generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jürgen Hasch committed Oct 8, 2016
1 parent 3a19ac4 commit 0ef1fc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ define([
name = uniqueid() + '.' + msg.match(/data:image\/(\S+);/)[1];
}
create_dir(path);
var url = '//' + base_url + '/api/contents/' + utils.url_path_join(path, name);
var url = '//' + location.host + utils.url_path_join(base_url, 'api/contents', path, name);

var img = msg.replace(/(^\S+,)/, ''); // strip header
//console.log("send_to_server:", url, img);
Expand Down

0 comments on commit 0ef1fc9

Please sign in to comment.