   @fetchStyle: (name) ->
     new Promise (resolve, reject) ->
       link = document.createElement('link')
+      link.classList.add className
       link.rel = 'stylesheet'
       link.type = 'text/css'
       link.href = "https://www.centili.com/widget/#{name}"

      window.centili && !fancyboxes.length && window.centili.loadFancyBox()

  $(document).on 'turbolinks:before-cache', ->
    hasWidget() && deleteFancyboxes()

  ####################################################
  # End stupid


export class StoreCentili
  widget = '#c-mobile-payment-widget'
  className = 'js-centili-extra'

  ####################################################
  # This junk is stupid hack for a loading overlay
