From c081e60da85d4463faa6ee7b0bc229d3d0a5887c Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 2 Aug 2016 12:03:51 -0400 Subject: #292 - db name change Former-commit-id: d9adc1eb1cc8f14d974f49df00a3d32165abcc4a --- www/js/app.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'www/js') diff --git a/www/js/app.js b/www/js/app.js index 27cb9b18..03955d29 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -78,8 +78,8 @@ angular.module('zmApp', [ eventHistoryTimer: 10000, eventPlaybackQuery: 3000, packeryTimer: 500, - dbName: 'zmninja.db', - dbTableName: 'userProfile' + dbName: 'zmninja' + @@ -1099,7 +1099,11 @@ angular.module('zmApp', [ ZMDataModel.zmLog("You are running on " + $rootScope.platformOS); - + localforage.config({ + name: zm.dbName + + }); + localforage.defineDriver(window.cordovaSQLiteDriver).then(function () { return localforage.setDriver([ // Try setting cordovaSQLiteDriver if available, -- cgit v1.2.3