Permalink
Browse files

added manifest for Mozilla apps

  • Loading branch information...
BlackScorp committed Mar 19, 2012
1 parent 390591b commit bf800f13813e26a03b9a75a706ebd255a6605ddb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -55,11 +55,11 @@ Crafty.extend({
//Progress function
function pro(){
-
-
- var src = this.currentSrc || this.src;
+ var src = this.src;
if (this.removeEventListener) {
this.removeEventListener('canplaythrough', pro, true);
+ }else{
+ this.detachEvent('canplaythrough',pro);
}
this.onload=null;
++j;
@@ -110,8 +110,12 @@ Crafty.extend({
}
if (obj.addEventListener) {
obj.addEventListener('canplaythrough', pro, true);
+ }else if(obj.attachEvent){
+ obj.attachEvent('oncanplaythrough',pro);
+ }else{
+ obj.oncanplaythrough=pro;
}
-
+ //
} else if (ext === "jpg" || ext === "jpeg" || ext === "gif" || ext === "png") {
if(!obj) {
obj = new Image();
View
@@ -0,0 +1,30 @@
+{
+ "version": "0.1",
+ "name": "Cron",
+ "description": "Small Space Shooter",
+ "icons": {
+ "48": "/assets/img/icons/icon-48.png",
+ "128": "/assets/img/icons/icon-128.png"
+ },
+ "widget": {
+ "path": "/widget.html",
+ "width": 100,
+ "height": 200
+ },
+ "developer": {
+ "name": "Witali Mik",
+ "url": "https://twitter.com/#!/xBlackScorpx"
+ },
+ "installs_allowed_from": [
+ "https://appstore.mozillalabs.com"
+ ],
+ "locales": {
+ "de": {
+ "description": "Kleiner Schooter mit Raumschiffen",
+ "developer": {
+ "url": "https://twitter.com/#!/xBlackScorpx"
+ }
+ }
+ },
+ "default_locale": "en"
+}
View
@@ -0,0 +1 @@
+Test here!!

0 comments on commit bf800f1

Please sign in to comment.