harbour-nextcloudnotes/qml/js/showdown-1.9.0/src/loader.js
2018-11-27 10:21:50 +01:00

17 lines
334 B
JavaScript

var root = this;
// AMD Loader
if (typeof define === 'function' && define.amd) {
define(function () {
'use strict';
return showdown;
});
// CommonJS/nodeJS Loader
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = showdown;
// Regular Browser loader
} else {
root.showdown = showdown;
}