github.com/secoba/wails/v2@v2.6.4/internal/frontend/runtime/desktop/clipboard.js (about)

     1  /*
     2   _	   __	  _ __
     3  | |	 / /___ _(_) /____
     4  | | /| / / __ `/ / / ___/
     5  | |/ |/ / /_/ / / (__  )
     6  |__/|__/\__,_/_/_/____/
     7  The electron alternative for Go
     8  (c) Lea Anthony 2019-present
     9  */
    10  
    11  /* jshint esversion: 9 */
    12  
    13  import {Call} from "./calls";
    14  
    15  /**
    16   * Set the Size of the window
    17   *
    18   * @export
    19   * @param {string} text
    20   */
    21  export function ClipboardSetText(text) {
    22      return Call(":wails:ClipboardSetText", [text]);
    23  }
    24  
    25  /**
    26   * Get the text content of the clipboard
    27   *
    28   * @export
    29   * @return {Promise<{string}>} Text content of the clipboard
    30  
    31   */
    32  export function ClipboardGetText() {
    33      return Call(":wails:ClipboardGetText");
    34  }