From e37d12fe597b9d60c00d4c568994d681fda53fb5 Mon Sep 17 00:00:00 2001 From: Dan Callahan Date: Sun, 26 Feb 2017 14:29:42 -0600 Subject: [PATCH] Remove obsolete references to Firefox OS / mozApps --- README.md | 4 +--- assets/img/badge_firefoxos.png | Bin 4293 -> 0 bytes index.html | 2 +- js/glowingbear.js | 40 --------------------------------- 4 files changed, 2 insertions(+), 44 deletions(-) delete mode 100644 assets/img/badge_firefoxos.png diff --git a/README.md b/README.md index 589778f..14fe42a 100644 --- a/README.md +++ b/README.md @@ -17,14 +17,12 @@ Now point your browser to the [Glowing Bear](http://www.glowing-bear.org)! If yo You can run Glowing Bear in many ways: * like any other webpage - * as an app in Firefox (choose "Install app" on the landing page) * Chrome app ("Tools", then "Create application shortcuts") * Android Chrome app a full-screen experience ("Add to homescreen"). * [Android app](https://play.google.com/store/apps/details?id=com.glowing_bear) that you can install from the Google Play Store - * [Firefox OS app](https://marketplace.firefox.com/app/glowing-bear/) in the Firefox Marketplace. * Electron app, for Windows, Linux and MacOSX. ```npm install; npm install electron-packager; npm run build-electron-{windows, darwin, linux}``` -Android app on Google PlayFirefox OS app in the Firefox Marketplace +Android app on Google Play ##Screenshots diff --git a/assets/img/badge_firefoxos.png b/assets/img/badge_firefoxos.png deleted file mode 100644 index 3bb6991c3490120b0e92a60dfc566828c2d17df8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4293 zcmbVQc{r5o`yV5+jjggInJh)jX0lC;Wfmk`bW#dqW-!Ujm>KJgHI6k)Bt^0n5y}$E z8nTtOP>M?SP)%|o{HAkG=lA{NT;D&w?{&TJbKlQ%fA0Oh-s^qi>}-BGP=Igr73dKp#2}4FDJ#2hs^dZ!!z)PWGfwjg(g&H7kQDBqQZhI@WM& zI)>~;u?S|69fEBfiNW4P1Cp{a8f+Md;wkVUvk2fop9@qbD$q#zPrWD}{c{_p4E|Gu z-YF z^E0kLrJ1Y~3c8~Q28^9E(hpzw-9xPYY* z{d~w&mL=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`8=Wt{S+ndnB!ay?MJ_^6L?L934rXnZ_Wp~<>uF!cdY>hzP11C*1&c0EiPfNGXqlvK;XP@rLVt|p)J zQJHR;DH2pY>5IQ4(YNs--}>ZaU&m^X!&EDP-ITj^8?R^^Oz2V(j9iL0b^RiyGTu9J zvo`-#N|6Ex((w3u)iH}MO}Rydl|Y2sk5sC^x;CAZzAkJxoL{7@gflt(YEE_ha7Iv9 z1Lwkz3Y_lZsabQd6kM7s`uwc7A#3Q{+xz!dl_Zjm=W`yfOl*`*C(a+5l?gHK21ejU zwsF;6@jGPhfaPk$2oWtjQs{2B+v6dnIi;*W5^h@;Iq$^pN}Mx}|Ii=myiUyc!)+sX wV21yht3k~i+j7NCW4DCvB2B^ht1F)%AntpSCv+A){PV|xCC&z0Zsr#GfBc%8v;Y7A diff --git a/index.html b/index.html index 54264bd..4e3f262 100644 --- a/index.html +++ b/index.html @@ -191,7 +191,7 @@ chown -R username:username ~username -
+

diff --git a/js/glowingbear.js b/js/glowingbear.js index c7ddab8..38aea50 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -53,22 +53,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $log.debug($rootScope.$$watchersCount); }; - $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() { @@ -617,30 +601,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'); };