Skip to content

Commit 9489884

Browse files
committed
fixed some missing files when merging
1 parent 306a5b8 commit 9489884

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

core/exporter.js

-4
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,6 @@ module.exports = (function() {
195195
typeof mediaMeta.thumbs !== 'undefined'
196196
) {
197197
mediaMeta.thumbs.map(t => {
198-
if (!t) {
199-
return;
200-
}
201-
202198
if (t.hasOwnProperty('path')) {
203199
tasks.push(
204200
new Promise((resolve, reject) => {

core/file.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ module.exports = (function() {
2323
let presentationMd = path.join(api.getFolderPath(), "presentation.md");
2424
fs.access(presentationMd, fs.F_OK, function(err) {
2525
if (err) {
26-
reject();
26+
resolve(validator.unescape(global.appInfos.presentationMd));
2727
} else {
28-
let presentationContent = fs.readFileSync(
29-
presentationMd,
30-
global.settings.textEncoding
28+
let presentationContent = validator.unescape(
29+
fs.readFileSync(presentationMd, global.settings.textEncoding)
3130
);
3231
presentationContent = api.parseData(presentationContent);
3332
resolve(presentationContent);

core/main.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ module.exports = function({ router }) {
1414
const is_electron = process.versions.hasOwnProperty("electron");
1515

1616
console.log(`App is electron : ${is_electron}`);
17-
console.log(
18-
`Starting app ${global.appInfos.name} version ${global.appInfos.version}`
19-
);
17+
console.log(`Starting app ${global.appInfos.name}`);
2018
console.log(process.versions);
2119

2220
const debug =

core/server-realtime_text_collaboration.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// var share = require('./sharedb-server');
2-
var ShareDB_logger = require('sharedb-logger');
2+
// var ShareDB_logger = require('sharedb-logger');
33
var ShareDB = require('sharedb');
44
ShareDB.types.register(require('rich-text').type);
55

@@ -59,7 +59,7 @@ module.exports = function(server) {
5959
const sharewss = new WebSocket.Server({ noServer: true });
6060
sharewss.on('connection', (client, req) => {
6161
dev.logfunction(
62-
`server-realtime_text_collaboration • wss new client connection`
62+
`server-realtime_text_collaboration • sharewss new client connection`
6363
);
6464

6565
client.id = uuid();
@@ -166,6 +166,8 @@ module.exports = function(server) {
166166
client.isAlive = true;
167167
});
168168

169+
client.on('message', function() {});
170+
169171
client.on('error', function(error) {
170172
dev.error(
171173
`server-realtime_text_collaboration • sharewss: client connection errored for ${client.id} with error = ${error}`
@@ -177,14 +179,14 @@ module.exports = function(server) {
177179
const pathname = url.parse(request.url).pathname;
178180

179181
if (pathname === '/sharedb') {
180-
wss.handleUpgrade(request, socket, head, function done(ws) {
181-
wss.emit('connection', ws, request);
182+
sharewss.handleUpgrade(request, socket, head, function done(ws) {
183+
sharewss.emit('connection', ws, request);
182184
});
183185
}
184186
});
185187

186188
setInterval(function() {
187-
wss.clients.forEach(function(client) {
189+
sharewss.clients.forEach(function(client) {
188190
if (client.isAlive === false) return client.terminate();
189191

190192
client.isAlive = false;

public/dist/build.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)