You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 491B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * @Author: Caven
  3. * @Date: 2020-04-09 20:02:37
  4. * @Last Modified by: Caven
  5. * @Last Modified time: 2020-05-12 00:09:49
  6. */
  7. const install = function(DC) {
  8. if (!DC || !DC.init) {
  9. throw new Error('Plot: Missing DC Base')
  10. }
  11. if (!DC.ready) {
  12. throw new Error('Plot: Missing DC Core')
  13. }
  14. DC.init(() => {
  15. require('./Overlay.Loader')
  16. })
  17. }
  18. /* istanbul ignore if */
  19. if (typeof window !== 'undefined' && window.DC) {
  20. install(window.DC)
  21. }
  22. module.exports = {
  23. install
  24. }