Implement a bug fix
This commit is contained in:
parent
5d786fa5b5
commit
049b8f600b
@ -1,7 +1,6 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
## 0.0.2
|
## 0.0.3
|
||||||
# Alpha release
|
# Alpha release
|
||||||
|
|
||||||
- Added a copyurl.js file to copy the url.
|
- Updated the copyurl.js file to fix the error
|
||||||
- Added a css style. will be updated more later.
|
- Updated the style.css file to increase the width (hopefully)
|
||||||
- Updated the main.html file to make the extension look better.
|
|
||||||
|
10
copyurl.js
10
copyurl.js
@ -1,5 +1,11 @@
|
|||||||
const url = window.location.href;
|
const url = window.location.href;
|
||||||
const clipboard = navigator.clipboard;
|
navigator.clipboard.writeText(url).then(
|
||||||
clipboard.writeText(url);
|
function () {
|
||||||
|
console.log(`Copied URL: ${url}`);
|
||||||
|
},
|
||||||
|
function (err) {
|
||||||
|
console.error(`Something went wrong..`, err);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
console.log(`Wrote URL: ${url}`);
|
console.log(`Wrote URL: ${url}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user