"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.loadImage = void 0;

// Copyright 1999-2019. Plesk International GmbH. All rights reserved.
const loadImage = (src, {
  onSuccess,
  onFailure
}) => {
  const image = new Image();
  image.onload = onSuccess;
  image.onerror = onFailure;
  image.src = src;
};

exports.loadImage = loadImage;