Skip to content

Commit

Permalink
Fix leave protection for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
rla committed Dec 20, 2015
1 parent f2435cc commit 072f8a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions admin/lib/pages/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ exports.create = function(type, id, recovered) {

return message;

} else {

return false;
}
}

Expand Down
2 changes: 2 additions & 0 deletions prolog/bc/bc_api_io.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
% and success status.

bc_reply_success(Data):-
write('Cache-Control: no-cache\r\n'),
reply_json(_{ status: success, data: Data }).

%! bc_reply_error(+Message) is det.
%
% Sends error JSON response with Message.

bc_reply_error(Message):-
write('Cache-Control: no-cache\r\n'),
reply_json(_{ status: error, message: Message }).
Loading

0 comments on commit 072f8a8

Please sign in to comment.