Chrome push notification - how to open URL adress after click? : <p>I am new to Google Chrome Push notifications and I was just reading some questions and answers here, on stackoverflow and I have ended with this easy push notification javascript.</p>

<pre><code>  navigator.serviceWorker.register('sw.js');

function notify() {

    Notification.requestPermission(function(result) {

        if (result === 'granted') {
           navigator.serviceWorker.ready.then(function(registration) {

                registration.showNotification('test notification', {
                    body: 'Hey I am test!',
                    icon: 'image.png',
                });

            });
        }
    });

}
</code></pre>

<p>Its just simple notification, but I need open a new window with other webpage after click on notification.</p>

<p>I know it is possible, but I cant find examples using "serviceWorker" syntax.</p>

<p>Please help. Thanks.</p>
