GithubHelp home page GithubHelp logo

Comments (6)

pgimalac avatar pgimalac commented on June 8, 2024 1

I tested what you described and it works properly.
I implemented a fix and it also works as expected. I'll open a PR.

from refined-github.

fregante avatar fregante commented on June 8, 2024

Possible solutions:

  • detect session:resume event

I think that's what's refilling the field here

from refined-github.

pgimalac avatar pgimalac commented on June 8, 2024

@fregante what do you think of just not replacing the title if the page was reloaded, using the logic described in https://stackoverflow.com/questions/5004978/check-if-page-gets-reloaded-or-refreshed-in-javascript/53307588#53307588 ?

Let me know if that would work for you, I can open a PR.

from refined-github.

fregante avatar fregante commented on June 8, 2024

I think we still need to cover reloads for the feature to work normally, right?

If you don't touch the field, what happens when you reload the page? Does first commit stay in the title?

from refined-github.

pgimalac avatar pgimalac commented on June 8, 2024

I assumed the first time you open the page the feature replaces the title with the first commit, and then when you refresh GIthub restores whatever was in the field, whether it's the first commit or the user wrote something.

I'll give it a try and open a PR if it works properly.

from refined-github.

fregante avatar fregante commented on June 8, 2024

That may be right, it should be tested:

  1. Load the page
  2. Have Refined GitHub set the title
  3. Disable Refined GitHub
  4. Reload the page

from refined-github.

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.