Commit b4afb064 authored by asseldonk's avatar asseldonk
Browse files

Prevent endsWith() since it produces errors on ipads

parent 1e861d36
......@@ -34,6 +34,8 @@ define(["jquery", "jclass", "./bookmark"], function($, JClass, Bookmark) {
}, function(err, data) {
if (err) return;
// build links to pathParts
// following line produces errors on ipad
// if (data.endsWith("/")) data = data.substring(0, data.length - 1);
if (data.endsWith("/")) data = data.substring(0, data.length - 1);
var pathParts = self.FileBase.helper.splitPath(data);
var pathPartsLinks = [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment