1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-09-01 21:22:04 +03:00

Added code highlighting syntax modes

This commit is contained in:
Dan Brown
2017-06-17 12:41:18 +01:00
parent 0528e98d9c
commit 2060cdb931
2 changed files with 42 additions and 2 deletions

View File

@@ -399,7 +399,7 @@ module.exports = function (ngApp, events) {
// Handle image upload and add image into markdown content
function uploadImage(file) {
if (file.type.indexOf('image') !== 0) return;
if (file === null || !file.type.indexOf('image') !== 0) return;
let formData = new FormData();
let ext = 'png';
let xhr = new XMLHttpRequest();