Skip to content

Commit

Permalink
always inform USW we're installed
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Dec 20, 2023
1 parent 4a58d56 commit 9d42434
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content/install-hook-userstylesworld.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ if (window.USW !== 1) {
const ORIGIN = location.origin;
const send = (type, data) => postMessage({type, data}, ORIGIN);

const onReady = async function (data) {
if (data) {
send('usw-remove-stylus-button');
}
const onReady = async () => {
send('usw-remove-stylus-button');
if (location.pathname === '/api/oauth/style/new') {
filledInfo = true;
const styleId = +new URLSearchParams(location.search).get('vendor_data');
Expand Down

0 comments on commit 9d42434

Please sign in to comment.