You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
Hi.
I'm trying to use this extension, but 'run in browser' button doesn't appear. I noticed that init function is not invoked because event handler in background.js doesn't work properly.
I'm using chrome ver. 56 (in ver. 59 I see the same behaviour).
It works fine if I delete the second condition in if in background.js. But I don' think that it's good solution.
// if (port.name === "devtools-page" && port.sender.tab.title.match(/Developer Tools.*https?:\/\/(www.)?codewars.com\/kata\/.+\/javascript/))
if (port.name === "devtools-page")
Can you please try now? I guess the listener caught a message from other source, not from this extension which broke it because .tab property is optional and maybe not sent in other messages. It should be present in the message sent from this extension from Chrome developer tools
No, It still doesn't work.
I have only this property in post.sender object: id: "cbknhbpodbomcgnhgiblflfjjglcnicc", url: "chrome-extension://cbknhbpodbomcgnhgiblflfjjglcnicc/src/devtools/index.html"
@bojan88 Unfortunately in the newest chrome canary (ver. 59) It still doesn't work. I don't know what exactly is a reason.
In chrome ver. 56 It works fine.
@bojan88 I try to reload one more time and It's working in my Chrome Canary 59.0.3033.0.
I can't give more information. I found out only that messageHanler wasn't invoked, but it was added successfully here port.onMessage.addListener(messageHanler);
Activity
[-]Init method is not invoked[/-][+]Init function is not invoked[/+]bojan88 commentedon Mar 4, 2017
Hi, thanks for the info. Can to please tell me which browser are you using?
StanislavMayorov commentedon Mar 5, 2017
I'm using chrome ver. 56 (in ver. 59 I see the same behaviour).
It works fine if I delete the second condition in if in background.js. But I don' think that it's good solution.
Error in console says that title is undefined.
Fixing error when optional port.sender.tab is not defined - #1
bojan88 commentedon Mar 5, 2017
Can you please try now? I guess the listener caught a message from other source, not from this extension which broke it because .tab property is optional and maybe not sent in other messages. It should be present in the message sent from this extension from Chrome developer tools
StanislavMayorov commentedon Mar 5, 2017
No, It still doesn't work.
I have only this property in post.sender object:
id: "cbknhbpodbomcgnhgiblflfjjglcnicc",url: "chrome-extension://cbknhbpodbomcgnhgiblflfjjglcnicc/src/devtools/index.html"Changed the way we are checking if it's codewars kata page - #1
bojan88 commentedon Mar 5, 2017
I completely changed the way tab URL is checked. Please try now
StanislavMayorov commentedon Mar 5, 2017
@bojan88 It works! Thanks for your extension.
bojan88 commentedon Mar 5, 2017
Great. I'm glad it's useful.
StanislavMayorov commentedon Mar 5, 2017
@bojan88 Unfortunately in the newest chrome canary (ver. 59) It still doesn't work. I don't know what exactly is a reason.
In chrome ver. 56 It works fine.
bojan88 commentedon Mar 7, 2017
@StanislavMayorov I just checked, and it's working in Chrome Canary 59.0.3032.0. Try reloading the extension
StanislavMayorov commentedon Mar 8, 2017
@bojan88 I try to reload one more time and It's working in my Chrome Canary 59.0.3033.0.
I can't give more information. I found out only that messageHanler wasn't invoked, but it was added successfully here
port.onMessage.addListener(messageHanler);Chrome shows some errores.

If this information isn't enough you can close my issue. I'm glad that it works fine in ver. 56. Thank you for support.
Changed the way init works - #1
bojan88 commentedon Mar 10, 2017
@StanislavMayorov can you try now?
StanislavMayorov commentedon Mar 27, 2017
@bojan88 I have noticed that It works with some taskes and doesn't work with others. It still doesn't work with this one.