Skip to content

Commit

Permalink
Pull request #735: AG-27890 Fix cosmetic rule logging
Browse files Browse the repository at this point in the history
Merge in ADGUARD-FILTERS/tsurlfilter from fix/AG-27890 to master

Squashed commit of the following:

commit 0286cab
Author: Vladimir Zhelvis <v.zhelvis@adguard.com>
Date:   Tue Nov 21 15:17:05 2023 +0300

    bump version

commit 7e94ee3
Author: Vladimir Zhelvis <v.zhelvis@adguard.com>
Date:   Tue Nov 21 15:12:51 2023 +0300

    fix cosmetic apply logging
  • Loading branch information
zhelvis committed Nov 21, 2023
1 parent e886af4 commit e013a1f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions packages/tswebextension/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- TODO: manually add compare links for version to the end of the file -->
<!-- e.g. [0.1.2]: https://github.com/AdguardTeam/tsurlfilter/compare/tswebextension-v0.1.1...tswebextension-v0.1.2 -->

## [0.4.7] - 2023-11-21

### Fixed
- Fix cosmetic apply logging.


## [0.4.6] - 2023-11-16

### Added
- Support for `POST` requests to `$removeparam` modifier [#99](https://github.com/AdguardTeam/tsurlfilter/issues/99).

### Fixed
- Fix 'storage not initialized' error on extension install.


## [0.4.5] - 2023-11-15

Expand Down
2 changes: 1 addition & 1 deletion packages/tswebextension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adguard/tswebextension",
"version": "0.4.6",
"version": "0.4.7",
"description": "This is a TypeScript library that implements AdGuard's extension API",
"main": "dist/index.js",
"typings": "dist/types/lib/mv2/background/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ export class MessagesApi implements MessagesApiInterface {

const tabId = sender.tab.id;

const frame = tabsApi.getTabMainFrame(tabId);
const tabContext = tabsApi.getTabContext(tabId);

if (!frame?.url) {
if (!tabContext?.info.url) {
return false;
}

const { url } = frame;
const { url } = tabContext.info;

let published = false;

Expand Down

0 comments on commit e013a1f

Please sign in to comment.