Skip to content

Commit

Permalink
Remove the timeout waiting for the app wrapper before starting
Browse files Browse the repository at this point in the history
Fixes #198
  • Loading branch information
insin committed Jan 21, 2023
1 parent 62625cd commit f531d13
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tweak-new-twitter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3286,15 +3286,7 @@ async function main() {
debug = true
}

let $appWrapper = await getElement('#layers + div', {
name: 'app wrapper',
timeout: 10000,
})
if ($appWrapper == null) {
error('Unable to initialise Tweak New Twitter - app wrapper was not found after 10 seconds')
return
}

let $appWrapper = await getElement('#layers + div', {name: 'app wrapper'})
let lastFlexDirection
observeElement($appWrapper, () => {
let flexDirection = getComputedStyle($appWrapper).flexDirection
Expand Down

0 comments on commit f531d13

Please sign in to comment.