I get an error when initialize called. I needed to delay the start of my Ember application, which works in Cordoba, until the launch of Couchbase Lite. It looks like this:
App = Ember.Application.create() App.deferReadiness() ⋮ ;( function() { function checkURL() { if( ! window.cblite ) { console.error( 'couchbase lite not present' ) } else { cblite.getURL( function( err, url ) { var adapter = App.__container__.lookup('store:main').adapterFor( 'application' ) url = url.substring( 0, url.length - 1 ) Ember.set( adapter, 'host', url ) App.advanceReadiness() ⋮
source share