mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] devtools: Add a button to navigate to the doc
This commit adds a button to the devtools navbar which links to the documentation.
This commit is contained in:
committed by
Géry Debongnie
parent
b848a83777
commit
cca4b4bb8e
@@ -77,6 +77,15 @@ browserInstance.runtime.onMessage.addListener(async (message, sender, sendRespon
|
||||
setOwlStatus(message.data);
|
||||
// Dummy message to test if the extension context is still valid
|
||||
} else if (message.type === "keepAlive") {
|
||||
return;
|
||||
// Open the devtools documentation in a new tab
|
||||
} else if (message.type === "openDoc") {
|
||||
browserInstance.tabs.create(
|
||||
{ url: "https://github.com/odoo/owl/blob/master/doc/tools/devtools_guide.md", active: false },
|
||||
function (tab) {
|
||||
browserInstance.tabs.update(tab.id, { active: true });
|
||||
}
|
||||
);
|
||||
return;
|
||||
// Relay the received message to the devtools app
|
||||
} else if (message.type === "newDevtoolsPanel") {
|
||||
|
||||
Reference in New Issue
Block a user