Skip to content

Commit fc5f1b8

Browse files
committed
Framed fix
1 parent 4c61092 commit fc5f1b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

injected/src/features/duck-player-native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ContentFeature from '../content-feature.js';
2-
// import { isBeingFramed } from '../utils.js';
2+
import { isBeingFramed } from '../utils.js';
33
import { DuckPlayerNativeMessages } from './duckplayer-native/messages.js';
44
import { mockTransport } from './duckplayer-native/mock-transport.js';
55
import { setupDuckPlayerForEverything, setupDuckPlayerForNoCookie, setupDuckPlayerForSerp, setupDuckPlayerForYouTube } from './duckplayer-native/duckplayer-native.js';
@@ -17,13 +17,13 @@ export class DuckPlayerNativeFeature extends ContentFeature {
1717
current;
1818

1919
async init(args) {
20-
console.log('DUCK PLAYER NATIVE LOADING', args);
20+
console.log('DUCK PLAYER NATIVE LOADING', args, window.location.href);
2121

2222
// TODO: May depend on page type
2323
/**
2424
* This feature never operates in a frame
2525
*/
26-
// if (isBeingFramed()) return;
26+
if (isBeingFramed()) return;
2727

2828
/**
2929
* @type {import("@duckduckgo/privacy-configuration/schema/features/duckplayer-native.js").DuckPlayerNativeSettings['selectors']}

0 commit comments

Comments
 (0)