Skip to content

Commit

Permalink
Tidy up some things
Browse files Browse the repository at this point in the history
  • Loading branch information
photodiode committed Oct 19, 2021
1 parent 08b5066 commit fe6866f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/panorama/js/html.tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ export function create(tab) {
}, false);

node.addEventListener('dragstart', drag.tabDragStart, false);
/*node.addEventListener('dragenter', tabDragEnter, false);
node.addEventListener('dragover', tabDragOver, false);
node.addEventListener('dragleave', tabDragLeave, false);*/
node.addEventListener('drop', drag.tabDrop, false);
node.addEventListener('dragend', drag.tabDragEnd, false);

Expand All @@ -57,7 +54,7 @@ export function get(tabId) {

export async function update(tabNode, tab) {

if(tabNode) {
if (tabNode) {
tabNode.querySelector('.title span').innerHTML = '';
tabNode.querySelector('.title span').appendChild(document.createTextNode(tab.title));

Expand All @@ -73,7 +70,7 @@ export async function update(tabNode, tab) {

export async function updateThumbnail(tabNode, tabId, thumbnail) {

let formatThumbnail = function(data) {
const formatThumbnail = function(data) {
return (data) ? 'url(' + data + ')' : '';
}

Expand Down

0 comments on commit fe6866f

Please sign in to comment.