Implement a bug fix

This commit is contained in:
TropiiDev 2025-03-05 13:51:04 -05:00
parent 5d786fa5b5
commit 049b8f600b
3 changed files with 12 additions and 6 deletions

View File

@ -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)

View File

@ -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}`);

View File

@ -1,3 +1,4 @@
* {
background-color: gray;
width: 100px;
}