Skip to content

Commit

Permalink
new dist and fix clipboard issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed Feb 18, 2021
1 parent da4b1ce commit e9c8ee8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
<script type="text/javascript" src="assets/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="assets/popper.min.js"></script>
<script type="text/javascript" src="assets/bootstrap-4.1.1/js/bootstrap.min.js"></script>
<script src="runtime-es2015.681bd8a4edb177c86959.js" type="module"></script><script src="runtime-es5.681bd8a4edb177c86959.js" nomodule defer></script><script src="polyfills-es5.0a18749ad841716a5ee0.js" nomodule defer></script><script src="polyfills-es2015.ecb75b73aa8d38aaedc1.js" type="module"></script><script src="main-es2015.23efeffec81b1c2e5f1b.js" type="module"></script><script src="main-es5.23efeffec81b1c2e5f1b.js" nomodule defer></script></body>
<script src="runtime-es2015.681bd8a4edb177c86959.js" type="module"></script><script src="runtime-es5.681bd8a4edb177c86959.js" nomodule defer></script><script src="polyfills-es5.0a18749ad841716a5ee0.js" nomodule defer></script><script src="polyfills-es2015.ecb75b73aa8d38aaedc1.js" type="module"></script><script src="main-es2015.18a5cf1b71a2d026e82d.js" type="module"></script><script src="main-es5.18a5cf1b71a2d026e82d.js" nomodule defer></script></body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions src/app/components/internet/internet.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,18 @@ export class InternetComponent implements OnInit {
});
}

copyMessage(text){
navigator.clipboard.writeText(text).then().catch(e => console.error(e));
copyMessage(val: string){
const selBox = document.createElement('textarea');
selBox.style.position = 'fixed';
selBox.style.left = '0';
selBox.style.top = '0';
selBox.style.opacity = '0';
selBox.value = val;
document.body.appendChild(selBox);
selBox.focus();
selBox.select();
document.execCommand('copy');
document.body.removeChild(selBox);
}

public get isAccessPoint() {
Expand Down
14 changes: 12 additions & 2 deletions src/app/components/log/log.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,18 @@ export class LogComponent implements OnInit {
}, (err: any) => {console.error(err); });
}

copyMessage(text){
navigator.clipboard.writeText(text).then().catch(e => console.error(e));
copyMessage(val: string){
const selBox = document.createElement('textarea');
selBox.style.position = 'fixed';
selBox.style.left = '0';
selBox.style.top = '0';
selBox.style.opacity = '0';
selBox.value = val;
document.body.appendChild(selBox);
selBox.focus();
selBox.select();
document.execCommand('copy');
document.body.removeChild(selBox);
}

}

0 comments on commit e9c8ee8

Please sign in to comment.