Refactored event subscription calls to use websocket
[profile/ivi/SettingsApp.git] / js / panel-connman.js
index bf6fa80..384ccc0 100644 (file)
@@ -14,7 +14,7 @@ function connmanPanelInit() {
     $('#page_connman').on('pageshow', function(event, data) {
         if (data.prevPage.attr('id') === 'page_connman_service') return;
 
-        settings.connman.subscribeEvents(connmanEventReceived);
+        wsAPI.subscribeEvents(connmanEventReceived);
 
         console.log('Get all the available technologies');
         $('#connman_technologies').html('');