Browse Source

`yarn prettier --write core` (#10471)

chip 1 year ago
parent
commit
a975cd7976

+ 1 - 1
core/tauri-utils/src/pattern/isolation.js

@@ -47,7 +47,7 @@
     algorithm.name = 'AES-GCM'
     algorithm.iv = window.crypto.getRandomValues(new Uint8Array(12))
 
-    const {contentType, data} = __RAW_process_ipc_message_fn__(payload)
+    const { contentType, data } = __RAW_process_ipc_message_fn__(payload)
 
     const message =
       typeof data === 'string'

+ 2 - 4
core/tauri/scripts/core.js

@@ -60,15 +60,13 @@
         ) {
           resolve(r)
           delete window[`_${error}`]
-        },
-        true)
+        }, true)
         const error = window.__TAURI_INTERNALS__.transformCallback(function (
           e
         ) {
           reject(e)
           delete window[`_${callback}`]
-        },
-        true)
+        }, true)
 
         const action = () => {
           window.__TAURI_INTERNALS__.ipc({

+ 1 - 1
core/tauri/scripts/ipc-protocol.js

@@ -2,7 +2,7 @@
 // SPDX-License-Identifier: Apache-2.0
 // SPDX-License-Identifier: MIT
 
-;(function() {
+;(function () {
   /**
    * A runtime generated key to ensure an IPC call comes from an initialized frame.
    *

+ 1 - 1
core/tauri/test/fixture/isolation/isolation-dist/index.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!doctype html>
 <html lang="en">
   <head>
     <meta charset="UTF-8" />

+ 1 - 1
core/tests/acl/fixtures/capabilities/multiwindow/cap-main.json

@@ -17,4 +17,4 @@
     "fs:allow-move-temp",
     "fs:read-download-dir"
   ]
-}
+}