Implement a bug fix
This commit is contained in:
parent
5d786fa5b5
commit
049b8f600b
@ -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)
|
||||
|
10
copyurl.js
10
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}`);
|
||||
|
Loading…
Reference in New Issue
Block a user