src/muncher/import.js
/**
 * Sends a event request to Iconizer to add the correct icons
 * @param {*} names
 */
Sends a event request to Iconizer to add the correct icons
@param {*} names
Sends a event request to Iconizer to add the correct icons @param { * } names
function queryIconizer(names) {
  return new Promise((resolve, reject) => {
    let listener = (event) => {
      resolve(event.detail);
      document.removeEventListener("deliverIcon", listener);
    };
    setTimeout(() => {
      document.removeEventListener("deliverIcon", listener);
      reject("Tokenizer not responding");
    }, 500);
    document.addEventListener("deliverIcon", listener);
    document.dispatchEvent(new CustomEvent("queryIcons", { detail: { names: names } }));
  });
}
function queryIconizer ( names ) { return new Promise ( ( resolve , reject ) => { let listener = ( event ) => { resolve ( event . detail ) ; document . removeEventListener ( "deliverIcon" , listener ) ; } ; setTimeout ( ( ) => { document . removeEventListener ( "deliverIcon" , listener ) ; reject ( "Tokenizer not responding" ) ; } , 500 ) ; document . addEventListener ( "deliverIcon" , listener ) ; document . dispatchEvent ( new CustomEvent ( "queryIcons" , { detail : { names : names } } ) ) ; } ) ; }
Sends a event request to Iconizer to add the correct icons
 @param {*} names
Sends a event request to Iconizer to add the correct icons @param { * } names
// cleaning up