From b901c80262023828b6c910a19234a1ebf8bfb6df Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 23 Jul 2015 15:28:44 +0000 Subject: [PATCH] Integrate tooltip links (improve touch devices support) Permit use of bold markup into tooltip --- js/libs/fluidbook/fluidbook.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index 159eec89..27a7c0aa 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -1265,9 +1265,12 @@ Fluidbook.prototype = { fs = LocalFileSystem.PERSISTENT; } - window.requestFileSystem(fs, 0, function (fileSystem) { + var requestFileSystem = window.requestFileSystem || + window.webkitRequestFileSystem; + + requestFileSystem(fs, 0, function (fileSystem) { fileSystem.root.getFile("dummy.html", {create: true, exclusive: false}, function (fileEntry) { - var filePath = fileEntry.fullPath.replace("dummy.html", "") + localname; + var filePath = fileEntry.toURL().replace("dummy.html", "") + localname; var fileTransfer = new FileTransfer(); var uri = encodeURI(url); fileTransfer.download( -- 2.39.5