diff --git a/index.html b/index.html index 1a2fc10..fd851d2 100644 --- a/index.html +++ b/index.html @@ -184,29 +184,6 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel -
-
-

- - Install app - -

-
-
-
-

You don't need to install anything to use this app, it should work with any modern browser. Start using it right now! However, there are a few ways to improve integration with your operating system.

-

Mobile Applications

-

If you're running Android 4.4 or later, you can install our app from the Google Play Store! We also provide an optimized application for Firefox OS devices. If you're using the Firefox browser, keep on reading below -- the Firefox OS app won't work for you

-

Android app on Google Play Firefox OS app in the Firefox Marketplace

-

Firefox Browser

-

If you have a recent version of Firefox you can install Glowing Bear as a Firefox app. Click the button to install.

-

-

Note for self-signed certificates: Firefox does not share a certificate storage with Firefox apps, so accepting self-signed certificates is a bit tricky.

-

Chrome

-

To install Glowing Bear as an app in Chrome for Android, select Menu - Add to home screen. In the desktop version of Chrome, click Menu - More tools - Create application shortcuts.

-
-
-

diff --git a/js/glowingbear.js b/js/glowingbear.js index e2f48fc..b6a1e4f 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -67,23 +67,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $log.debug(watchers); }; - $scope.isinstalled = (function() { - // Check for firefox & app installed - if (navigator.mozApps !== undefined) { - navigator.mozApps.getSelf().onsuccess = function _onAppReady(evt) { - var app = evt.target.result; - if (app) { - return true; - } else { - return false; - } - }; - } else { - return false; - } - }()); - - // Detect page visibility attributes (function() { // Sadly, the page visibility API still has a lot of vendor prefixes @@ -612,30 +595,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', connection.attemptReconnect(bufferId, 3000); }; -//XXX this is a bit out of place here, either move up to the rest of the firefox install code or remove - $scope.install = function() { - if (navigator.mozApps !== undefined) { - // Find absolute url with trailing '/' or '/index.html' removed - var base_url = location.protocol + '//' + location.host + - location.pathname.replace(/\/(index\.html)?$/, ''); - var request = navigator.mozApps.install(base_url + '/manifest.webapp'); - request.onsuccess = function () { - $scope.isinstalled = true; - // Save the App object that is returned - var appRecord = this.result; - // Start the app. - appRecord.launch(); - alert('Installation successful!'); - }; - request.onerror = function () { - // Display the error information from the DOMError object - alert('Install failed, error: ' + this.error.name); - }; - } else { - alert('Sorry. Only supported in Firefox v26+'); - } - }; - $scope.showModal = function(elementId) { document.getElementById(elementId).setAttribute('data-state', 'visible'); };