fix not supported 'startsWith' function in IE11 (fixes #3307)

This commit is contained in:
FinnStutzenstein 2017-06-21 15:28:43 +02:00
parent 573fc4da57
commit f42b6f0d37
2 changed files with 1 additions and 6 deletions

View File

@ -33,7 +33,7 @@ angular.module('OpenSlidesApp.core.docx', [])
tagStack.pop();
// Special: end paragraphs
if (tag.startsWith('/p')) {
if (tag.indexOf('/p') === 0) {
docx += '</w:p>';
inParagraph = false;
}

View File

@ -17,11 +17,6 @@ angular.module('OpenSlidesApp.motions.docx', ['OpenSlidesApp.core.docx'])
function ($http, $q, operator, Config, Category, gettextCatalog, FileSaver, lineNumberingService, Html2DocxConverter) {
var PAGEBREAK = '<w:p><w:r><w:br w:type="page" /></w:r></w:p>';
/*var TAGS_NO_PARAM = ['b', 'strong', 'em', 'i'];
var images;
var relationships;
var contentTypes; */
var converter;