You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really don't want to make local changes to your code.. i'm including your repo as a sub-module for my own bower component/repo. This works as is perfectly in ionic on both just browsers as well as on apps, but i wanted to re-use my components on a web-app that is not ionic. when i tried it crashes cuz 'ionic' is not defined. All i had to do was wrap it in a try-catch block and now it work in and outside of ionic:
try {
if(ionic.Platform.isIOS()){
//Force WebSQL on IOS as IndexedDB is not stable on IOS
var iosConfig = angular.extend(IMAGENIE_LOCAL_FORAGE_CONFIG, {driver : 'webSQLStorage'});
imagenieLocalForageInstance = $localForage.createInstance(iosConfig);
}else{
imagenieLocalForageInstance = $localForage.createInstance(IMAGENIE_LOCAL_FORAGE_CONFIG);
}
} catch (error) {
imagenieLocalForageInstance = $localForage.createInstance(IMAGENIE_LOCAL_FORAGE_CONFIG);
}
Can i talk you into making this patch?
The text was updated successfully, but these errors were encountered:
I really don't want to make local changes to your code.. i'm including your repo as a sub-module for my own bower component/repo. This works as is perfectly in ionic on both just browsers as well as on apps, but i wanted to re-use my components on a web-app that is not ionic. when i tried it crashes cuz 'ionic' is not defined. All i had to do was wrap it in a try-catch block and now it work in and outside of ionic:
try {
if(ionic.Platform.isIOS()){
//Force WebSQL on IOS as IndexedDB is not stable on IOS
var iosConfig = angular.extend(IMAGENIE_LOCAL_FORAGE_CONFIG, {driver : 'webSQLStorage'});
imagenieLocalForageInstance = $localForage.createInstance(iosConfig);
}else{
imagenieLocalForageInstance = $localForage.createInstance(IMAGENIE_LOCAL_FORAGE_CONFIG);
}
} catch (error) {
imagenieLocalForageInstance = $localForage.createInstance(IMAGENIE_LOCAL_FORAGE_CONFIG);
}
Can i talk you into making this patch?
The text was updated successfully, but these errors were encountered: