diff --git a/platypush/backend/http/webapp/src/utils/Api.vue b/platypush/backend/http/webapp/src/utils/Api.vue index 12305fcee7..52ab708855 100644 --- a/platypush/backend/http/webapp/src/utils/Api.vue +++ b/platypush/backend/http/webapp/src/utils/Api.vue @@ -72,7 +72,11 @@ export default { action: action, args: args, }, timeout, showError); - } + }, + + timeout(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); + }, }, }