diff --git a/manifest.json b/manifest.json index f68f8377..a5f66530 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "JDN", "description": "JDN – helps Test Automation Engineer to create Page Objects in the test automation framework and speed up test development", "devtools_page": "index.html", - "version": "3.13.530", + "version": "3.13.531", "icons": { "128": "icon128.png" }, diff --git a/package.json b/package.json index 19885e98..f36c1595 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jdn-ai-chrome-extension", - "version": "3.13.530", + "version": "3.13.531", "description": "jdn-ai chrome extension", "scripts": { "start": "webpack --watch --env devenv", diff --git a/src/index.js b/src/index.js index 2f5ff6d6..836198e4 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ import "./icon128.png"; +import { ScriptMsg } from "./pageServices/scriptMsg.constants"; window.onload = () => { chrome.devtools.panels.create("JDN", "icon128.png", "app.html"); @@ -8,7 +9,7 @@ window.onbeforeunload = () => { const tabId = chrome.devtools.inspectedWindow.tabId; chrome.tabs.sendMessage(tabId, { - message: "SET_CLOSED_SESSION", + message: ScriptMsg.SetClosedSession, param: { tabId, isClosed: true }, }); };