Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added manifest for Mozilla apps

  • Loading branch information...
commit bf800f13813e26a03b9a75a706ebd255a6605ddb 1 parent 390591b
Vitalij Mik authored
BIN  assets/img/icons/icon-128.png
BIN  assets/img/icons/icon-48.png
12 assets/js/loader.js
@@ -55,11 +55,11 @@ Crafty.extend({
55 55
56 56 //Progress function
57 57 function pro(){
58   -
59   -
60   - var src = this.currentSrc || this.src;
  58 + var src = this.src;
61 59 if (this.removeEventListener) {
62 60 this.removeEventListener('canplaythrough', pro, true);
  61 + }else{
  62 + this.detachEvent('canplaythrough',pro);
63 63 }
64 64 this.onload=null;
65 65 ++j;
@@ -110,8 +110,12 @@ Crafty.extend({
110 110 }
111 111 if (obj.addEventListener) {
112 112 obj.addEventListener('canplaythrough', pro, true);
  113 + }else if(obj.attachEvent){
  114 + obj.attachEvent('oncanplaythrough',pro);
  115 + }else{
  116 + obj.oncanplaythrough=pro;
113 117 }
114   -
  118 + //
115 119 } else if (ext === "jpg" || ext === "jpeg" || ext === "gif" || ext === "png") {
116 120 if(!obj) {
117 121 obj = new Image();
30 cron.manifest
... ... @@ -0,0 +1,30 @@
  1 +{
  2 + "version": "0.1",
  3 + "name": "Cron",
  4 + "description": "Small Space Shooter",
  5 + "icons": {
  6 + "48": "/assets/img/icons/icon-48.png",
  7 + "128": "/assets/img/icons/icon-128.png"
  8 + },
  9 + "widget": {
  10 + "path": "/widget.html",
  11 + "width": 100,
  12 + "height": 200
  13 + },
  14 + "developer": {
  15 + "name": "Witali Mik",
  16 + "url": "https://twitter.com/#!/xBlackScorpx"
  17 + },
  18 + "installs_allowed_from": [
  19 + "https://appstore.mozillalabs.com"
  20 + ],
  21 + "locales": {
  22 + "de": {
  23 + "description": "Kleiner Schooter mit Raumschiffen",
  24 + "developer": {
  25 + "url": "https://twitter.com/#!/xBlackScorpx"
  26 + }
  27 + }
  28 + },
  29 + "default_locale": "en"
  30 +}
1  widget.html
... ... @@ -0,0 +1 @@
  1 +Test here!!

0 comments on commit bf800f1

Please sign in to comment.
Something went wrong with that request. Please try again.