Fix 'stop' speech button in Safari (Fixes #2029)
Use '{}' instead of empty 'JSON.stringify()'.
This commit is contained in:
parent
21d9898645
commit
f47055c13a
@ -318,7 +318,7 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda'])
|
||||
$scope.endSpeech = function () {
|
||||
$http.delete(
|
||||
'/rest/agenda/item/' + item.id + '/speak/',
|
||||
{headers: {'Content-Type': 'application/json'}, data: JSON.stringify()}
|
||||
{headers: {'Content-Type': 'application/json'}, data: {}}
|
||||
)
|
||||
.error(function(data){
|
||||
$scope.alert = { type: 'danger', msg: data.detail, show: true };
|
||||
|
Loading…
Reference in New Issue
Block a user