Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit a6dcc3c

Browse files
rootroot
authored andcommitted
Bugfix for prod
1 parent cf4d014 commit a6dcc3c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/db/MongoDB.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const baseCode = [
1414
class MongoDB {
1515
constructor (username, password, host, database, port) {
1616
let url = `mongodb://${username}:${password}@${host}:${port}/?retryWrites=true&w=majority`;
17-
url = 'mongodb://127.0.0.1:34919/7fd02636-cfe2-4691-980b-8fd1090347c3?';
1817
this.client = new MongoClient(url);
1918
}
2019

src/publics/js/dev/page/editor/socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class EditorSocket{
1111
this.ws = new Socket({
1212
secure: false,
1313
port: window.location.port,
14-
hostname: 'localhost',
14+
hostname: window.location.host,
1515
});
1616

1717
this.stack = {UPDATE_EVENT: []};

0 commit comments

Comments
 (0)