Skip to content

Commit

Permalink
fix: load settings before main
Browse files Browse the repository at this point in the history
  • Loading branch information
usoonees committed Dec 13, 2022
1 parent dbe3981 commit d9351e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logseq-plugin-paste-more",
"version": "1.5.4",
"version": "1.5.5",
"main": "dist/index.html",
"logseq": {
"id": "_usoon-logseq-paste-more",
Expand Down
12 changes: 6 additions & 6 deletions public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import "@logseq/libs"
import TurndownService from './turndown.js';
import {gfm} from '@guyplusplus/turndown-plugin-gfm'
import { splitBlock } from "./splitBlock";
import { SettingSchemaDesc } from "@logseq/libs/dist/LSPlugin.user";

async function main() {
logseq.useSettingsSchema([
const settings: SettingSchemaDesc[] = [
{
key: "indentHeaders",
title: 'Whether to indent headers',
Expand All @@ -31,10 +31,10 @@ async function main() {
title: 'Enable paste more',
type: "boolean",
default: true,
description: ''
}
]);
description: ''}
];

async function main() {
function createModel() {
return {
controlUsage
Expand Down Expand Up @@ -177,4 +177,4 @@ async function main() {
}


logseq.ready(main).catch(console.error)
logseq.useSettingsSchema(settings).ready(main).catch(console.error)

0 comments on commit d9351e6

Please sign in to comment.