mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 14:54:51 +00:00
b4dc730575
We were using the same name as one of the core startup modules.
30 lines
659 B
JavaScript
30 lines
659 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 = "xlsx-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");
|
|
}
|
|
};
|
|
|
|
})();
|