aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tutorials/samegame/samegame4/content/samegame.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/samegame/samegame4/content/samegame.js')
-rwxr-xr-xexamples/tutorials/samegame/samegame4/content/samegame.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorials/samegame/samegame4/content/samegame.js b/examples/tutorials/samegame/samegame4/content/samegame.js
index 7bb7243914..ad4d39d7b1 100755
--- a/examples/tutorials/samegame/samegame4/content/samegame.js
+++ b/examples/tutorials/samegame/samegame4/content/samegame.js
@@ -193,7 +193,7 @@ function saveHighScore(name) {
if (scoresURL != "")
sendHighScore(name);
- var db = Sql.openDatabaseSync("SameGameScores", "1.0", "Local SameGame High Scores", 100);
+ var db = Sql.LocalStorage.openDatabaseSync("SameGameScores", "1.0", "Local SameGame High Scores", 100);
var dataStr = "INSERT INTO Scores VALUES(?, ?, ?, ?)";
var data = [name, gameCanvas.score, maxColumn + "x" + maxRow, Math.floor(gameDuration / 1000)];
db.transaction(function(tx) {