18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
|
;(function(window, document, undefined) {
|
||
|
"use strict";
|
||
|
|
||
|
<%= contents %>
|
||
|
|
||
|
/*
|
||
|
* Use SweetAlert with RequireJS
|
||
|
*/
|
||
|
|
||
|
if (typeof define === 'function' && define.amd) {
|
||
|
define(function () {
|
||
|
return sweetAlert;
|
||
|
});
|
||
|
} else if (typeof module !== 'undefined' && module.exports) {
|
||
|
module.exports = sweetAlert;
|
||
|
}
|
||
|
|
||
|
})(window, document);
|