Merge pull request #1 from nrichards/feature/support_v4

This commit is contained in:
Huey 2022-11-20 14:25:36 +08:00 committed by GitHub
commit 5b813dacf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -146,6 +146,7 @@ function getInteractionType(url) {
/**
* Handles changes to the URL of a tab.
*
* @returns {void}
*/
function onTabUpdate() {

View file

@ -2,6 +2,7 @@
/**
* Replacement onClick handler for Follow button.
*
* @param {Event} event
* @returns {void}
*/
@ -15,6 +16,7 @@ function onClickFollow(event) {
/**
* Wait for element to appear.
*
* @param {string} selector
* @param {number} timeoutDuration
* @see {@link https://github.com/storybookjs/test-runner/blob/6d41927154e8dd1e4c9e7493122e24e2739a7a0f/src/setup-page.ts#L134}
@ -55,6 +57,7 @@ function waitForElement(selector, timeoutDuration) {
/**
* Inject replacement onClick handler for Follow button.
*
* @returns {void}
*/
async function injectFollowButton() {
@ -68,6 +71,7 @@ async function injectFollowButton() {
/**
* Initialise injection for Mastodon Follow button.
*
* @returns {void}
*/
async function init() {