Skip to content

Commit

Permalink
testdb
Browse files Browse the repository at this point in the history
  • Loading branch information
libcy committed Apr 23, 2018
1 parent 831356c commit 9efa5cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions game/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -7057,7 +7057,7 @@
}
};

if(window.indexedDB){
if(window.indexedDB||localStorage.getItem(lib.configprefix+'nodb')){
var request = window.indexedDB.open(lib.configprefix+'data',4);
request.onupgradeneeded=function(e){
var db=e.target.result;
Expand Down Expand Up @@ -22314,7 +22314,7 @@
selfclose:function(){
if(game.online||game.onlineroom){
if((game.servermode||game.onlinehall)&&_status.over){

// later
}
else{
game.saveConfig('tmp_user_roomId');
Expand Down
2 changes: 1 addition & 1 deletion game/phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var fs = require('fs');
var webpage = require('webpage')
var load = function(id){
var page = webpage.create();
page.settings.userAgent = 'SpecialAgent';
page.settings.userAgent = 'NonameServer';
page.open('file:https://'+fs.workingDirectory+'/index.html?server='+id, function(status) {
if(status !== 'success') {
console.log(fs.workingDirectory);
Expand Down

0 comments on commit 9efa5cf

Please sign in to comment.