From 1e84d4e8a662a629c96782e83c2b8768f89eff69 Mon Sep 17 00:00:00 2001 From: valentine195 <38669521+valentine195@users.noreply.github.com> Date: Tue, 30 Mar 2021 09:40:17 -0400 Subject: [PATCH] 1.0.0 Community plugin release --- src/main.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main.ts b/src/main.ts index 3475c2c..490f594 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import { Plugin } from "obsidian"; -import fromEntries from "object.fromentries"; +import fromEntries from "object.fromentries/index"; if (!Object.fromEntries) { //incorrect @types definition //I tested that this correctly shims without error @@ -155,17 +155,10 @@ export default class ObsidianAdmonition extends Plugin { } catch (e) { console.error(e); const pre = createEl("pre"); - const textError = getComputedStyle(document.body).getPropertyValue( - "--text-error" - ) - ? getComputedStyle(document.body).getPropertyValue( - "--text-error" - ) - : "#ff3333"; pre.createEl("code", { attr: { - style: `color: ${textError.trim()} !important` + style: `color: var(--text-error) !important` } }).createSpan({ text: