From dc149c357fe51f76451a1d0dd48977784b969846 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 8 May 2023 08:48:46 -0300 Subject: [PATCH] fmt --- plugins/app/README.md | 2 +- plugins/app/guest-js/index.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/app/README.md b/plugins/app/README.md index 706e67a9..88321dae 100644 --- a/plugins/app/README.md +++ b/plugins/app/README.md @@ -51,7 +51,7 @@ fn main() { Afterwards all the plugin's APIs are available through the JavaScript guest bindings: ```javascript -import * as app from 'tauri-plugin-app-api' +import * as app from "tauri-plugin-app-api"; ``` ## Contributing diff --git a/plugins/app/guest-js/index.ts b/plugins/app/guest-js/index.ts index af9e9234..faba16ba 100644 --- a/plugins/app/guest-js/index.ts +++ b/plugins/app/guest-js/index.ts @@ -24,7 +24,7 @@ * @module */ -import { invoke } from '@tauri-apps/api/tauri' +import { invoke } from "@tauri-apps/api/tauri"; /** * Gets the application version. @@ -37,7 +37,7 @@ import { invoke } from '@tauri-apps/api/tauri' * @since 1.0.0 */ async function getVersion(): Promise { - return invoke('plugin:app|version') + return invoke("plugin:app|version"); } /** @@ -51,7 +51,7 @@ async function getVersion(): Promise { * @since 1.0.0 */ async function getName(): Promise { - return invoke('plugin:app|name') + return invoke("plugin:app|name"); } /** @@ -66,7 +66,7 @@ async function getName(): Promise { * @since 1.0.0 */ async function getTauriVersion(): Promise { - return invoke('plugin:app|tauri_version') + return invoke("plugin:app|tauri_version"); } /** @@ -81,7 +81,7 @@ async function getTauriVersion(): Promise { * @since 1.2.0 */ async function show(): Promise { - return invoke('plugin:app|show') + return invoke("plugin:app|show"); } /** @@ -96,7 +96,7 @@ async function show(): Promise { * @since 1.2.0 */ async function hide(): Promise { - return invoke('plugin:app|hide') + return invoke("plugin:app|hide"); } -export { getName, getVersion, getTauriVersion, show, hide } +export { getName, getVersion, getTauriVersion, show, hide };