RE: [development] Running SteemPlus natively on Firefox

You are viewing a single comment's thread from:

[development] Running SteemPlus natively on Firefox

in utopian-io •  6 years ago 

I haven't got much time to rewrite the whole block, and because I am not JavaScript or WebExtensions expert, I decided to concentrate on making the bug fix clear without additional refactoring.

The particular thing what is needed for refactoring is understanding the difference between lastFocusedWindow and currentWindow flags when querying for tabs. Chrome current window docs mention that currentWindow is where the code is currently executing. I understand that when I click extension button on the toolbar, the code is executed in the window with the toolbar. Then I don't understand why lastFocusedWindowis being used.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!