Skip to content

Commit cabb5b3

Browse files
committed
only in top
1 parent 56a4c1e commit cabb5b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

injected/src/features/favicon.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import ContentFeature from '../content-feature.js';
2+
import { isBeingFramed } from '../utils.js';
23

34
export class Favicon extends ContentFeature {
45
init() {
6+
/**
7+
* This feature never operates in a frame
8+
*/
9+
if (isBeingFramed()) return;
10+
511
window.addEventListener('DOMContentLoaded', () => {
612
// send once, immediately
713
this.send();

0 commit comments

Comments
 (0)