Skip to content

Fixing the plugin to work with latest version of Trello app#2

Open
dellsala wants to merge 2 commits into
njt1982:masterfrom
dellsala:master
Open

Fixing the plugin to work with latest version of Trello app#2
dellsala wants to merge 2 commits into
njt1982:masterfrom
dellsala:master

Conversation

@dellsala

Copy link
Copy Markdown

When I tried to use the plugin yesterday it wouldn't work. I'm guessing the trello app used to publish its own "trelloUrlChanged" message, but it didn't look like that was happening anymore. The plugin now publishes the message itself based on window.history state changes.

Dell Sala added 2 commits March 11, 2015 15:49
…history change. No longer relies on this event being fired by the native trello app.
… added when the direct card url is used. Wasn't showing up before because the window overlay takes time to render.
@njt1982

njt1982 commented Mar 13, 2015

Copy link
Copy Markdown
Owner

Hi,

Thanks for this. I'm not sure what this is intended to fix... The plugin still works for me so I wonder if we are being served different versions of the app?

I've tried your PR locally in developer mode and it doesn't seem to behave any differently to the release. However, I am happy to merge it because this seems like a more stable approach moving forward (rather than relying on undocumented APIs).

One suggestion: Can the code style match, please? Looks like you have used tabs whereas the plugin uses spaces.

Also, when I use J/K on a card to go to next/previous card, I dont get the short URL button (I didn;t get that on the release either). Do you think this PR could fix that too? I couldn't see a change url event get fired though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants