I am trying to develop an extension for chrome. I did the necessary operations in the Process.js file. The codes worked but I got an undefined query error. This error did not prevent the code. There was a problem only in the share part in Google Slides. what do you think is the reason?
The system is working, but how can i prevent that warning ?
Please help me ?
Share google slides button not working. It works when I remove the plugin.
process.js
chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => {
let url = tabs[0].url;
url = url.replace('//', ';;').replace(/[/]/g, ';');
let pageTitle = tabs[0].title;
pageTitle = pageTitle.replaceAll("'", '*');
pageTitle = pageTitle.replaceAll('"', '**');
pageTitle = pageTitle.replace('//', '__').replace(/[/_]/g, '_');
});
google Slides and chrome extension image
chrome extension error log image
manifest.json
{
"name": "DergiPark",
"description": "This is a DergiPark Product. Powered by DergiPark.",
"content_scripts": [
{
"js": [
"/js/jquery.min.js",
"/js/alert_util.js",
"process.js"
],
"css": [
"/css/bootstrap.css"
],
"matches": [
"http://*/*",
"https://*/*"
]
}
],
"version": "1.0",
"manifest_version": 3,
"background": {
"service_worker": "background.js"
},
"icons": {
"48": "icons/DP-02.png",
"128": "icons/DP-02.png"
},
"action": {
"default_icon": {
"16": "icons/DP-02.png",
"24": "icons/DP-02.png",
"32": "icons/DP-02.png"
},
"default_popup": "popup.html"
},
"permissions": [
"activeTab", "tabs"
]
}