Skip to content

Commit

Permalink
Pass method name to message
Browse files Browse the repository at this point in the history
  • Loading branch information
revenkroz authored Feb 12, 2023
1 parent 6caa493 commit 54a5a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@
// DISABLE BACKEND FOR FRONTEND DEMO
// YOU CAN USE YOUR OWN REQUESTS TO YOUR OWN BACKEND
// CHANGE THIS CODE TO YOUR OWN
return onCallback && onCallback({error: 'This function should send requests to your backend. Please, change this code to your own.'});
return onCallback && onCallback({error: 'This function (' + method + ') should send requests to your backend. Please, change this code to your own.'});

const authData = DemoApp.initData || '';
fetch('/demo/api', {
Expand Down

0 comments on commit 54a5a07

Please sign in to comment.