Skip to content

Commit cfead29

Browse files
shakyShaneShane Osbourne
authored andcommitted
windows debugging
1 parent a7210f5 commit cfead29

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/messaging/lib/windows.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ export class WindowsMessagingTransport {
3939
// @ts-ignore
4040
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4141
notify(msg) {
42+
4243
console.log('🙏 windows transport, sending a notification', JSON.stringify(msg, null, 2))
43-
this.config.methods.postMessage(msg)
44+
const raw = {};
45+
raw.Name = msg.method;
46+
raw.Feature = msg.context;
47+
raw.SubFeatureName = msg.featureName;
48+
raw.Data = JSON.parse(JSON.stringify(raw.params || {}));
49+
50+
this.config.methods.postMessage(raw)
4451
}
4552
/**
4653
* @param {import("../index.js").RequestMessage} msg

packages/special-pages/pages/duckplayer/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<input id="setting" type="checkbox" class="settings-checkbox" />
3535
<label for="setting" class="settings-label">Always open YouTube videos in Duck Player</label>
3636
</form>
37-
<a href="about:preferences/duckplayer" aria-label="Open Settings" target="_blank" class="options-button open-settings" rel="noopener">
37+
<a href="#" aria-label="Open Settings" target="_blank" class="options-button open-settings" rel="noopener">
3838
<img src="./assets/img/cog.svg" alt="" />
3939
</a>
4040
<a href="#" class="options-button play-on-youtube" rel="noopener">

0 commit comments

Comments
 (0)