More bug fixes
This commit is contained in:
parent
9fac6c3762
commit
584aa370b1
@ -1,5 +1,7 @@
|
||||
## Changelog
|
||||
## 0.0.4
|
||||
## 0.0.5
|
||||
# Alpha release
|
||||
|
||||
- Updated the copyurl.js file to fix the error
|
||||
- Update the manifest.json file to include a shortcut keybind.
|
||||
- Update the copyurl.js file to copy the url based on the shortcut
|
||||
- Update the style.css file to add a larger width, and some color other than gray and black
|
||||
|
@ -1,3 +1,5 @@
|
||||
chrome.commands.onCommand.addListener(function (command) {
|
||||
if (command === "Copy URL") {
|
||||
const url = window.location.href;
|
||||
navigator.clipboard.writeText(url).then(
|
||||
function () {
|
||||
@ -7,5 +9,5 @@ navigator.clipboard.writeText(url).then(
|
||||
console.error(`Something went wrong..`, err);
|
||||
},
|
||||
);
|
||||
|
||||
console.log(`Wrote URL: ${url}`);
|
||||
}
|
||||
});
|
||||
|
@ -9,5 +9,13 @@
|
||||
},
|
||||
"background": {
|
||||
"service_worker": "copyurl.js"
|
||||
},
|
||||
"commands": {
|
||||
"Copy URL": {
|
||||
"suggested_key": {
|
||||
"default": "Ctrl+Shift+C"
|
||||
},
|
||||
"description": "Copy the URL of the current tab"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user