Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fall back to <html> if #js-repo-pjax-container is missing
This allows this module to be used with [Turbolinks] sites like GitLab. For a demo: * Visit https://gitlab.com/gitlab-org/gitlab-ce * Paste the contents of this file into the console * Paste the following into the console: ```javascript gitHubInjection(window, function(err) { if (err) { return console.error(err); } console.warn("XXX INJECTION"); }); ``` * Click the "Activity" link * Notice "XXX INJECTION" printed to the console [Turbolinks]: https://github.com/turbolinks/turbolinks See OctoLinker/OctoLinker#113
- Loading branch information