'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.avatarWorker = undefined;

var _pathExtra = require('path-extra');

const avatarWorker = exports.avatarWorker = new SharedWorker((0, _pathExtra.join)(__dirname, 'workers', 'avatar-worker.js'));
avatarWorker.port.start();
avatarWorker.port.postMessage(['Initialize', false, window.APPDATA_PATH]);
window.addEventListener('unload', e => {
  avatarWorker.port.postMessage(['Disconnect']);
});