Giter VIP home page Giter VIP logo

Comments (4)

mattkol avatar mattkol commented on June 3, 2024

@DSEWayne I could not really find time to verify why 'HostClose" may not work because of the holidays. Are you able to verify that your code is being called?

from chromely.

wana211 avatar wana211 commented on June 3, 2024

Hi, "HostClose" is being called and I can put code in there that is called upon close. I just can't see any way to cancel the close request. When the user closes the native app I want to be able to cancel the users close request if they have outstanding changes and prompt them with a HTML message box asking if they want to save before I allow the native app to be closed.

from chromely.

mattkol avatar mattkol commented on June 3, 2024

@DSEWayne I think I get your point now. There was never really any consideration for the option to avoid closing. The method was meant primarily to allow cleanups and other utility work before closing. What you are trying to do can be done though with some customization at your end.

from chromely.

wana211 avatar wana211 commented on June 3, 2024

Thanks, I thought that was the case. By "customization at your end" do you mean modifying the Chromely source code? Or can it be done another way?
I have a local copy of the source code and I've added a Boolean "cancel" property to the event args passed into the "HostClose" event and this is working. I can create a fork and add my changes in there.

from chromely.

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.