1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 18:40:28 +00:00
TiddlyWiki5/plugins/tiddlywiki/xlsx-utils/startup.js
Jermolene 8de4583d6c Add first pass at XLSX Utilities plugin
Thanks to @stevesunypoly for help with preparing the demo spreadsheet
2016-10-23 22:49:59 +01:00

30 lines
654 B
JavaScript

/*\
title: $:/plugins/tiddlywiki/xlsx-utils/startup.js
type: application/javascript
module-type: startup
Initialisation
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
// Export name and synchronous status
exports.name = "startup";
exports.after = ["load-modules"];
exports.synchronous = true;
exports.startup = function() {
// Check JSZip is installed
if(!$tw.utils.hop($tw.modules.titles,"$:/plugins/tiddlywiki/jszip/jszip.js")) {
// Make a logger
var logger = new $tw.utils.Logger("xlsx-utils");
logger.alert("The plugin 'xlsx-utils' requires the 'jszip' plugin to be installed");
}
};
})();