Update content of files

This commit is contained in:
GitHub Action 2023-09-01 19:39:40 +00:00
parent 304ddcee23
commit be49710f74
2 changed files with 4 additions and 3 deletions

View file

@ -136,8 +136,9 @@
<div class="viewport-stable_border"></div>
<script src="/js/jquery.min.js"></script>
<script src="https://tg.dev/js/bootstrap.min.js"></script>
<script src="/js/webappdemo.js?14"></script>
<script>
<script src="/js/webappdemo.js?15"></script>
<script>DemoApp.apiUrl = "/demo/api";
Telegram.WebApp.onEvent('themeChanged', function() {
$('#theme_data').html(JSON.stringify(Telegram.WebApp.themeParams, null, 2));
});

View file

@ -334,7 +334,7 @@ var DemoApp = {
apiRequest: function(method, data, onCallback) {
var authData = DemoApp.initData || '';
$.ajax('/demo/api', {
$.ajax(DemoApp.apiUrl, {
type: 'POST',
data: $.extend(data, {_auth: authData, method: method}),
dataType: 'json',