/**
 * Menu Icon Script for 3D Scan & Show Plugin
 *
 * Replaces the menu icon with a colored SVG
 */
(function ($) {
	"use strict";

	$(document).ready(function () {
		var $icon = $("#toplevel_page_3d-scan-and-show .wp-menu-image");
		if (
			$icon.length &&
			!$icon.find("svg").length &&
			typeof scanshowMenuIcon !== "undefined"
		) {
			$icon.css("background-image", "none").html(scanshowMenuIcon.svg);
		}
	});
})(jQuery);
