type applicationjavascripttitle $pluginsoeyoewsneotw-swal2startupjsmodule-type startupswal2 modulefunction jslint node true browser true global $tw false use strict; exportsname = swal2-startu
/*
type: application/javascript
title: $:/plugins/oeyoews/neotw-swal2/startup.js
module-type: startup
swal2 module
*/ (function () { /*jslint node: true, browser: true */ /*global $tw: false */ 'use strict';
class Swal2Startup { constructor() { this.name = 'swal2-startup-hook'; this.platforms = ['browser']; this.after = ['startup']; this.synchronous = true; }
startup() {
window.Swal = require('$:/plugins/oeyoews/neotw-swal2/swal2.min.js');
window.location.protocol === 'https:' &&
require('$:/plugins/oeyoews/neotw-swal2/startup-message-swal.js');
}
}
exports.startup = new Swal2Startup(); })()
原文地址: http://www.cveoy.top/t/topic/iYUc 著作权归作者所有。请勿转载和采集!