mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 03:33:58 -05:00
Fix pdfobject require
This commit is contained in:
parent
67d118782d
commit
196d546f7e
2 changed files with 19 additions and 15 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
var hljs = require('highlight.js');
|
||||||
|
var PDFObject = require('pdfobject');
|
||||||
|
|
||||||
//auto update last change
|
//auto update last change
|
||||||
var createtime = null;
|
var createtime = null;
|
||||||
var lastchangetime = null;
|
var lastchangetime = null;
|
||||||
|
|
|
@ -51,7 +51,6 @@ require('js-sequence-diagrams');
|
||||||
|
|
||||||
require('flowchart.js');
|
require('flowchart.js');
|
||||||
require('viz.js');
|
require('viz.js');
|
||||||
require('pdfobject');
|
|
||||||
require('file-saver');
|
require('file-saver');
|
||||||
require('store');
|
require('store');
|
||||||
require('js-url');
|
require('js-url');
|
||||||
|
@ -414,18 +413,18 @@ var statusType = {
|
||||||
var defaultMode = modeType.view;
|
var defaultMode = modeType.view;
|
||||||
|
|
||||||
//global vars
|
//global vars
|
||||||
var loaded = false;
|
window.loaded = false;
|
||||||
var needRefresh = false;
|
window.needRefresh = false;
|
||||||
var isDirty = false;
|
window.isDirty = false;
|
||||||
var editShown = false;
|
window.editShown = false;
|
||||||
var visibleXS = false;
|
window.visibleXS = false;
|
||||||
var visibleSM = false;
|
window.visibleSM = false;
|
||||||
var visibleMD = false;
|
window.visibleMD = false;
|
||||||
var visibleLG = false;
|
window.visibleLG = false;
|
||||||
var isTouchDevice = 'ontouchstart' in document.documentElement;
|
window.isTouchDevice = 'ontouchstart' in document.documentElement;
|
||||||
window.currentMode = defaultMode;
|
window.currentMode = defaultMode;
|
||||||
var currentStatus = statusType.offline;
|
window.currentStatus = statusType.offline;
|
||||||
var lastInfo = {
|
window.lastInfo = {
|
||||||
needRestore: false,
|
needRestore: false,
|
||||||
cursor: null,
|
cursor: null,
|
||||||
scroll: null,
|
scroll: null,
|
||||||
|
@ -447,9 +446,9 @@ var lastInfo = {
|
||||||
},
|
},
|
||||||
history: null
|
history: null
|
||||||
};
|
};
|
||||||
var personalInfo = {};
|
window.personalInfo = {};
|
||||||
var onlineUsers = [];
|
window.onlineUsers = [];
|
||||||
var fileTypes = {
|
window.fileTypes = {
|
||||||
"pl": "perl",
|
"pl": "perl",
|
||||||
"cgi": "perl",
|
"cgi": "perl",
|
||||||
"js": "javascript",
|
"js": "javascript",
|
||||||
|
@ -2274,6 +2273,8 @@ function havePermission() {
|
||||||
}
|
}
|
||||||
return bool;
|
return bool;
|
||||||
}
|
}
|
||||||
|
// global module workaround
|
||||||
|
window.havePermission = havePermission;
|
||||||
|
|
||||||
//socket.io actions
|
//socket.io actions
|
||||||
var socket = io.connect({
|
var socket = io.connect({
|
||||||
|
|
Loading…
Reference in a new issue