bittorrenttorque / btapp

Btapp.js is a backbone library that provides easy access to Torque/BitTorrent/uTorrent clients.
http://documentup.com/bittorrenttorque/btapp
783 stars 73 forks source link

throw error instead of trying to fetch required libs #8

Closed arestov closed 12 years ago

arestov commented 12 years ago
 if(typeof jQuery.jStorage === 'undefined') {
                jQuery.getScript(
                    'https://torque.bittorrent.com/jStorage/jstorage.min.js',
                    _.bind(this.initialize_objects, this, attributes)
                );
                return;
            }

this code not works in chrome extension, where external js files are forbidden, but there is no any warning why bapps.js does not work

pwmckenna commented 12 years ago

ah...in this case you just need to copy this jstorage file into your extension and link to it in your background.html