Script not running in firefox addon build with KangoFramework

119 views Asked by At

Ok so i am actually interested in building an extension for google chrome and firefox and my friend recommended me KangoFramework since it is cross platform.

So I downloaded ver 1.7.9 of the framework can't actually download ver 1.8.0 due to 404 error on their web or something. So I got to coding my first page with is the login page and I wrote some scripts for it to run and it work! Great !!

And so i wrote another page and I wrote another script and it works on google chrome but in firefox it seems like it didnt load my script at all as the debugger doesn't even show that I have the script file.

so i am confuse by this as how can this happen

here's my extension_info.json

    {
    "content_scripts": [
        "assets/Javascript/LoginPage.js"
    ], 
    "description": "Extension description", 
    "creator": "Annonymous", 
    "background_scripts": [
        "main.js"
    ], 
    "homepage_url": "http://kangoextensions.com/", 
    "version": "0.9.0", 
    "browser_button": {
        "caption": "some Extension", 
        "icon": "icons/Logo.png", 
        "tooltipText": "add on"
    }, 
    "name": "someExtension"
}

And here's my main.js File

function MyExtension() {
    var self = this;
    kango.ui.browserButton.addEventListener(kango.ui.browserButton.event.COMMAND, function() {
        kango.ui.browserButton.setPopup({url:'Index.html', width: 500, height:500});
    });
}

MyExtension.prototype = {

    _onCommand: function() {
        kango.browser.tabs.create({url: 'http://kangoextensions.com/'});
    }
};

var extension = new MyExtension();

and here's my html: http://pastebin.com/REdbhRqu

and here's my HamburgerMenu.js : http://pastebin.com/SvnRkH9Y

and lastly here the PhotoSwipe.js : http://pastebin.com/ykMW13YN

PhotoSipe.js is just to start the plugin

0

There are 0 answers