aboutsummaryrefslogtreecommitdiffstats
path: root/examples/demos/samegame/content/samegame.js
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-08-24 13:31:52 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-24 14:20:52 +0200
commit2a78bf40acece9aba2b9be882e5a1ca06a8e2135 (patch)
tree9c36dd74d442c47540aba63ee0eb817581818945 /examples/demos/samegame/content/samegame.js
parenta4573dd927991937751f1e56cc02f7946f4f182b (diff)
Make samegame work again
Fixes regression caused by commit 6ebf215fdaf2d757ab90ae4d46c4b938e978e2dc. The commit did update the autotests to use "Sql.LocalStorage.openDatabaseSync" instead of the old "Sql.openDatabaseSync", but the examples and demos were not updated accordingly. Task-number: QTBUG-26928 Change-Id: Ifcff830e195a05a26ee095e11d4185f6d94eb1aa Reviewed-by: Leonardo Sobral Cunha <leo.cunha@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'examples/demos/samegame/content/samegame.js')
-rwxr-xr-xexamples/demos/samegame/content/samegame.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/demos/samegame/content/samegame.js b/examples/demos/samegame/content/samegame.js
index 456007c2d0..d06221a2e8 100755
--- a/examples/demos/samegame/content/samegame.js
+++ b/examples/demos/samegame/content/samegame.js
@@ -464,7 +464,7 @@ function puzzleVictoryCheck(clearedAll)//gameOver has also been set if no more m
function getHighScore()
{
- var db = Sql.openDatabaseSync(
+ var db = Sql.LocalStorage.openDatabaseSync(
"SameGame",
"2.0",
"SameGame Local Data",
@@ -487,7 +487,7 @@ function getHighScore()
function saveHighScore(score)
{
// Offline storage
- var db = Sql.openDatabaseSync(
+ var db = Sql.LocalStorage.openDatabaseSync(
"SameGame",
"2.0",
"SameGame Local Data",
@@ -513,7 +513,7 @@ function saveHighScore(score)
function getLevelHistory()
{
- var db = Sql.openDatabaseSync(
+ var db = Sql.LocalStorage.openDatabaseSync(
"SameGame",
"2.0",
"SameGame Local Data",
@@ -536,7 +536,7 @@ function getLevelHistory()
function saveLevelHistory()
{
- var db = Sql.openDatabaseSync(
+ var db = Sql.LocalStorage.openDatabaseSync(
"SameGame",
"2.0",
"SameGame Local Data",