From 51fe372f60435cc12f52f50253d5b245654a8967 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 20 Nov 2024 19:44:27 -0500 Subject: [PATCH] ssb: Stick the stylesheet on document.body. No more fonts changing when various dialogs show up. --- apps/ssb.json | 2 +- apps/ssb/script.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/ssb.json b/apps/ssb.json index b1555ede..1c22cc6b 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&tL1A9Kt6d8wGwBFPAq5V5GtMqOatVCzuLIG6wwJhdyI=.sha256" + "previous": "&AyllqGdYCly9bdllfQCZmX8qxLrWLHDNEohqVPsZP20=.sha256" } diff --git a/apps/ssb/script.js b/apps/ssb/script.js index 7054543e..232e0c74 100644 --- a/apps/ssb/script.js +++ b/apps/ssb/script.js @@ -15,3 +15,10 @@ import * as tf_tab_search from './tf-tab-search.js'; import * as tf_tab_connections from './tf-tab-connections.js'; import * as tf_tab_query from './tf-tab-query.js'; import * as tf_tag from './tf-tag.js'; +import * as tf_styles from './tf-styles.js'; + +window.addEventListener('load', function() { + let style = document.createElement('style'); + style.innerText = tf_styles.styles; + document.body.appendChild(style); +}); \ No newline at end of file