diff src/icons/famfamfam.js @ 13:8d32537e0ca7

icons again
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 07 Aug 2022 14:28:14 -0600
parents 9159df67520a
children
line wrap: on
line diff
--- a/src/icons/famfamfam.js	Sun Aug 07 13:58:27 2022 -0600
+++ b/src/icons/famfamfam.js	Sun Aug 07 14:28:14 2022 -0600
@@ -2,11 +2,8 @@
 	'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 {};
-	};
+	let cssUrl = baseUrl + 'famfamfam/famfamfam.css';
+	let html = '<style>@import "' + cssUrl + '";</style>';
+	document.head.insertAdjacentHTML('beforeend',html);
+	sceditor.icons = {};
 })(document, sceditor);