@@ -9,7 +9,7 @@ import {CHROME} from '@/js/ua';
99import { ownRoot } from '@/js/urls' ;
1010import { capitalize , clipString , stringAsRegExpStr , t } from '@/js/util' ;
1111import { MF } from '@/js/util-webext' ;
12- import { isBlocked , tabId , tabUrl , tabUrlSupported } from '.' ;
12+ import { isBlocked , tabId , tabUrlSupported } from '.' ;
1313import { openOptions , openStyleFinder , pSideConfig , tSideHint } from './events' ;
1414import { closeMenu , menu , openMenu } from './menu' ;
1515
@@ -279,7 +279,7 @@ export function updateStateIcon(newDark, newDisabled) {
279279export async function updateStyleEntry ( id , del ) {
280280 const entry = $id ( kStyleIdPrefix + id ) ;
281281 const inMenu = id === menu . styleId && menu . isConnected ;
282- const [ res ] = del ? [ ] : await API . styles . getByUrl ( tabUrl , id , tabId , inMenu ) ;
282+ const [ res ] = del ? [ ] : await API . styles . getByIdInTab ( id , tabId , inMenu ) ;
283283 if ( res ) {
284284 const el = createStyleElement ( Object . assign ( res . style , res ) , entry ) ;
285285 if ( ! el . isConnected ) installed . append ( el ) ;
0 commit comments