diff src/icons/famfamfam.js @ 9:9159df67520a

remove "icons" option
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 07 Aug 2022 00:19:52 -0600
parents
children 8d32537e0ca7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/icons/famfamfam.js	Sun Aug 07 00:19:52 2022 -0600
@@ -0,0 +1,12 @@
+(function (document, sceditor) {
+	'use strict';
+
+	let baseUrl = document.currentScript.getAttribute('src').match(/.*\//)[0];
+
+	sceditor.icons.fn = function() {
+		let cssUrl = baseUrl + 'famfamfam/famfamfam.css';
+		let html = '<style>@import "' + cssUrl + '";</style>';
+		document.head.insertAdjacentHTML('beforeend',html);
+		return {};
+	};
+})(document, sceditor);