Download js/externalFile.js from DMTuit/psy_vk: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/DMTuit/psy_vk/resolve/main/js/externalFile.js
- Command line
-
hf download hf://spaces/DMTuit/psy_vk/js/externalFile.js
-
curl -L -o externalFile.js https://huggingface.co/spaces/DMTuit/psy_vk/resolve/main/js/externalFile.js
723 Bytes
| export function loadVKBridge() { | |
| console.log('Загрузка VK Bridge...'); | |
| return import('https://unpkg.com/@vkontakte/vk-bridge/dist/browser.min.js') | |
| .then(() => { | |
| console.log('VK Bridge загружен'); | |
| }) | |
| .catch(error => { | |
| console.error('Ошибка при загрузке VK Bridge:', error); | |
| }); | |
| } | |
| export function loadOpenAPI() { | |
| console.log('Загрузка OpenAPI...'); | |
| return import('https://vk.com/js/api/openapi.js?169') | |
| .then(() => { | |
| console.log('OpenAPI загружен'); | |
| }) | |
| .catch(error => { | |
| console.error('Ошибка при загрузке OpenAPI:', error); | |
| }); | |
| } |