8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d37cd0 commit dcfef2fCopy full SHA for dcfef2f
github-search-app/src/pages/main/index.js
@@ -31,8 +31,7 @@ export default class Main extends Component {
31
32
let buttonElement = document.createElement('button');
33
buttonElement.setAttribute('id', 'buttonElement');
34
- buttonElement.setAttribute('onclick', `${html_url}`);
35
- buttonElement.setAttribute('target', 5002 span> '_blank');
+ buttonElement.setAttribute('onclick', `${window.open(html_url, '_blank')}`);
36
let textElement = document.createTextNode('Acessar');
37
buttonElement.appendChild(textElement);
38
0 commit comments