mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-11 12:41:37 +01:00
Update content of files
This commit is contained in:
parent
304ddcee23
commit
be49710f74
2 changed files with 4 additions and 3 deletions
|
@ -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));
|
||||
});
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue