Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Web-SDK-20 proposal #9

Closed
ReenExe opened this issue Jun 21, 2016 · 2 comments
Closed

Documentation: Web-SDK-20 proposal #9

ReenExe opened this issue Jun 21, 2016 · 2 comments

Comments

@ReenExe
Copy link
Contributor

ReenExe commented Jun 21, 2016

documentation
Можете ли Вы добавить дополнительный пример - чтобы подключать одним файлом?

import PushwooshGlobal from 'web-push-notifications/classes/Global';
let pushwoosh = new PushwooshGlobal();
pushwoosh.push(['init', {
    logLevel: 'info', // or debug
    applicationCode: 'DEAD0-BEAF0',
    safariWebsitePushID: 'web.com.example.domain',
    defaultNotificationTitle: 'Pushwoosh',
    defaultNotificationImage: 'https://cp.pushwoosh.com/img/logo-medium.png'
}]);

В плане поддерживать такой вариант подключения - чтоб добавить в общую сборку

@karudo
Copy link
Contributor

karudo commented Jun 21, 2016

Здравствуйте!
импортить можно проще:

import {Pushwoosh} from 'web-push-notifications';
let pushwoosh = new Pushwoosh();

В документацию обязательно добавим, спасибо!

@ReenExe
Copy link
Contributor Author

ReenExe commented Jun 21, 2016

@ReenExe ReenExe closed this as completed Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants