Skip to content

TagSpaces is an offline, open source, document manager with tagging support

loading the filesaver.js library

Iliana85ec5783787
diff --git a/data/ext/perspectiveList/extension.js b/data/ext/perspectiveList/extension.js
index e4b7542e9..74efff039 100644
--- a/data/ext/perspectiveList/extension.js
+++ b/data/ext/perspectiveList/extension.js
@@ -26,7 +26,8 @@ define(function(require, exports, module) {
require([
extensionDirectory+'/perspectiveUI.js',
"text!"+extensionDirectory+'/toolbar.html',
- extensionDirectory+'/datatables/jquery.dataTables.min.js'
+ extensionDirectory+'/datatables/jquery.dataTables.min.js',
+ 'libs/filesaver.js/FileSaver.js'
], function(extUI, toolbarTPL) {
var toolbarTemplate = Handlebars.compile( toolbarTPL );
UI = new extUI.ExtUI(extensionID);
@@ -73,12 +74,12 @@ define(function(require, exports, module) {
var load = function () {
console.log("Loading perspective "+extensionID);
- if(UI === undefined) {
- window.setTimeout(function() { UI.reInit(); }, 1000);
- } else {
- UI.reInit();
- }
- };
+ if(UI === undefined) {
+ window.setTimeout(function() { UI.reInit(); }, 1000);
+ } else {
+ UI.reInit();
+ }
+ };
var clearSelectedFiles = function() {
if(UI !== undefined) {