1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 10:00:34 +00:00
TiddlyWiki5/plugins/tiddlywiki/aws/modules/init.js
Mario Pietsch fca39c7f72
Remove function wrapper (#8625)
* remove function wrapper

* add back anonymous function to sjcl.tid
2024-10-01 13:16:39 +01:00

34 lines
964 B
JavaScript

/*\
title: $:/plugins/tiddlywiki/aws/init.js
type: application/javascript
module-type: startup
AWS initialisation
\*/
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
// Export name and synchronous status
exports.name = "aws-init";
exports.before = ["startup"];
exports.synchronous = true;
exports.startup = function() {
var logger = new $tw.utils.Logger("aws");
if($tw.node) {
try {
require("aws-sdk");
} catch(e) {
logger.alert("The plugin 'tiddlywiki/aws' requires the aws-sdk to be installed. Run 'npm install aws-sdk' in the root of the TiddlyWiki repository");
}
}
if(!$tw.modules.titles["$:/plugins/tiddlywiki/async/async.js"]) {
logger.alert("The plugin 'tiddlywiki/aws' requires the 'tiddlywiki/async' plugin to be installed");
}
if(!$tw.modules.titles["$:/plugins/tiddlywiki/jszip/jszip.js"]) {
logger.alert("The plugin 'tiddlywiki/aws' requires the 'tiddlywiki/jszip' plugin to be installed");
}
};