mirror of
https://github.com/d0zingcat/obsidian-send-to-ghost.git
synced 2026-05-22 15:10:30 +00:00
remove console log
This commit is contained in:
@@ -14,8 +14,6 @@ export default class MyPlugin extends Plugin {
|
||||
|
||||
// 2 ways to publish post:
|
||||
|
||||
console.log('this.settings', this.settings)
|
||||
|
||||
// 1. Click on the ghost icon on the left
|
||||
this.addRibbonIcon('ghost', 'Publish Ghost', () => {
|
||||
const view = this.app.workspace.getActiveViewOfType(MarkdownView);
|
||||
|
||||
@@ -15,9 +15,6 @@ export const publishPost = async (view: ViewProp, settings: SettingsProp) => {
|
||||
|
||||
const version = 'v4'
|
||||
|
||||
console.log('content', content)
|
||||
console.log('settings', settings)
|
||||
|
||||
// Admin API key goes here
|
||||
const key = settings.adminToken;
|
||||
|
||||
@@ -32,7 +29,6 @@ export const publishPost = async (view: ViewProp, settings: SettingsProp) => {
|
||||
audience: `/${version}/admin/`
|
||||
});
|
||||
|
||||
|
||||
const contentPost = (content: ContentProp, settings: SettingsProp) => ({
|
||||
"posts": [{
|
||||
"title": content.title,
|
||||
|
||||
Reference in New Issue
Block a user