Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
Community plugin release
  • Loading branch information
valentine195 committed Mar 30, 2021
1 parent f505688 commit 1e84d4e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1e84d4e

Please sign in to comment.