Code Monkey home page Code Monkey logo

Comments (8)

heapwolf avatar heapwolf commented on May 22, 2024 1

it works. Maybe not documented?

    const filePaths = await window.parent.dialog({
      type: 'open', // or 'save'
      defaultPath: defaultPathFromSettings,
      allowFiles: true,
      title: 'Choose a file'
    })

    if (!filePaths || filePaths.length === 0 || filePaths[0] === '') return

    const file = filePaths[0]

from socket.

ccorcos avatar ccorcos commented on May 22, 2024

Oh sweet.

from socket.

heapwolf avatar heapwolf commented on May 22, 2024

Oh, I think the reason why it's not documented is because I wanted to make the javascript part of the API conform to the api on MDN

from socket.

ccorcos avatar ccorcos commented on May 22, 2024

Ah, thats cool. I'm trying to hunt around for where this code is, but I'm not seeing a dialog property on the system object: https://github.com/socketsupply/ssc-node/blob/master/index.js

from socket.

jwerle avatar jwerle commented on May 22, 2024

you can find it here: https://github.com/socketsupply/socket/blob/master/src/lib/desktop.js#L51
and its native implementation here: https://github.com/socketsupply/socket/blob/master/src/desktop/main.cc#L603

from socket.

trevnorris avatar trevnorris commented on May 22, 2024

@jwerle Has this API been documented?

from socket.

jwerle avatar jwerle commented on May 22, 2024

@jwerle Has this API been documented?

not yet!

from socket.

chicoxyzzy avatar chicoxyzzy commented on May 22, 2024

The API has changed and is documented now

from socket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.