Skip to content

Commit b3c8ae9

Browse files
committed
VKWebAppInit
1 parent 9f95531 commit b3c8ae9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vkontakte/create-vk-app",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "VK Apps Boilerplate",
55
"main": "src/index.js",
66
"repository": {

src/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class App extends React.Component {
2929
});
3030
}
3131
});
32+
// It is necessary to call VKWebAppInit to launch the app
33+
VKConnect.send('VKWebAppInit', {});
34+
3235
VKConnect.send('VKWebAppGetUserInfo', {});
3336
}
3437

0 commit comments

Comments
 (0)