diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a7c1b9..c743897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,6 @@ ## Changelog -## 0.0.2 +## 0.0.3 # Alpha release -- Added a copyurl.js file to copy the url. -- Added a css style. will be updated more later. -- Updated the main.html file to make the extension look better. +- Updated the copyurl.js file to fix the error +- Updated the style.css file to increase the width (hopefully) diff --git a/copyurl.js b/copyurl.js index 7132412..e18a85b 100644 --- a/copyurl.js +++ b/copyurl.js @@ -1,5 +1,11 @@ const url = window.location.href; -const clipboard = navigator.clipboard; -clipboard.writeText(url); +navigator.clipboard.writeText(url).then( + function () { + console.log(`Copied URL: ${url}`); + }, + function (err) { + console.error(`Something went wrong..`, err); + }, +); console.log(`Wrote URL: ${url}`); diff --git a/style.css b/style.css index 2d40f2f..74f4d39 100644 --- a/style.css +++ b/style.css @@ -1,3 +1,4 @@ * { background-color: gray; + width: 100px; }