From b64e363ecece05fd31690d84821c3642107d6d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sat, 7 Jun 2014 19:20:41 +0100 Subject: [PATCH] Add support for FirefoxOS --- js/app.js | 3 +++ manifest.webapp | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/js/app.js b/js/app.js index 32e8cac..df8c197 100644 --- a/js/app.js +++ b/js/app.js @@ -1,3 +1,6 @@ document.addEventListener('deviceready', function() { navigator.splashscreen.hide(); }, false); + +// FirefoxOS needs this for :active CSS rules (since it ignores :hover anyway) +document.addEventListener("touchstart", function(){}, true); diff --git a/manifest.webapp b/manifest.webapp index d324eda..3314755 100644 --- a/manifest.webapp +++ b/manifest.webapp @@ -1,13 +1,7 @@ { "name": "Glowing Bear", "description": "WeeChat Web frontend", - "launch_path": "/glowing-bear/index.html", - "icons": { - "128": "/glowing-bear/assets/img/glowing_bear_128x128.png", - "60": "/glowing-bear/assets/img/glowing_bear_60x60.png", - "90": "/glowing-bear/assets/img/glowing_bear_90x90.png", - "32": "/glowing-bear/assets/img/favicon.png" - }, + "launch_path": "/index.html", "installs_allowed_from": [ "*" ],