some small fixes

This commit is contained in:
Ell 2022-03-20 00:31:54 +01:00
parent a49de1de52
commit 0620aa806d
4 changed files with 7 additions and 5 deletions

View file

@ -1,5 +1,5 @@
import { ItemView, Plugin } from 'obsidian';
import { BrowserView, BrowserWindow, remote } from 'electron';
import { BrowserView, remote } from 'electron';
const viewName: string = "keep";
const padding: number = 5;
@ -38,6 +38,7 @@ export class KeepView extends ItemView {
async onload(): Promise<void> {
this.keep = new remote.BrowserView();
await this.keep.webContents.loadURL('https://keep.google.com');
this.keep.webContents.setZoomLevel(-1);
this.registerInterval(window.setInterval(() => this.update(), 16.67));
}

View file

@ -1,10 +1,10 @@
{
"id": "obsidian-keep",
"name": "Obsidian Keep",
"version": "1.0.0",
"version": "1.0.1",
"minAppVersion": "0.13.33",
"description": "An Obsidian plugin that displays Google Keep in the app",
"author": "Ellpeck",
"authorUrl": "https://ellpeck.de",
"isDesktopOnly": false
"isDesktopOnly": true
}

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-keep",
"version": "1.0.0",
"version": "1.0.1",
"description": "An Obsidian plugin that displays Google Keep in the app",
"main": "main.js",
"scripts": {

View file

@ -1,3 +1,4 @@
{
"1.0.0": "0.13.33"
"1.0.0": "0.13.33",
"1.0.1": "0.13.33"
}