Skip to content

Commit

Permalink
Update elementCodes.js
Browse files Browse the repository at this point in the history
Remove the old code for tab instance
  • Loading branch information
amanharwara committed Mar 28, 2019
1 parent c92db90 commit 7e9fbd7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/windows/assets/js/elementCodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ function tabElement(tab) {
}

function instanceElement(tab) {
/* return `<div class="ui bottom attached tab segment" id="tab-content-${tab.id}" data-tab="${tab.id}">
<webview preload="./js/whatsapp.js" id="whatsapp-${tab.id}" src="https://web.whatsapp.com/" useragent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" partition="persist:${tab.id}"></webview>
</div>`; */
return `<div class="ui bottom attached tab segment" id="tab-content-${tab.id}" data-tab="${tab.id}">
<webview preload="./js/whatsapp.js" id="whatsapp-${tab.id}" src="https://web.whatsapp.com/" useragent="${window.navigator.userAgent.replace(/(altus|Electron)([^\s]+\s)/g, '')}" partition="persist:${tab.id}"></webview>
</div>`;
Expand Down

0 comments on commit 7e9fbd7

Please sign in to comment.