Skip to content

Commit 3e061cc

Browse files
committed
remove clipboard icon
1 parent 9163e71 commit 3e061cc

File tree

6 files changed

+12
-25
lines changed

6 files changed

+12
-25
lines changed

TODOS.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function backgroundMessage(eventName, payload) {
6565
window.addEventListener("message", async (evt) => {
6666
if (evt.origin === window.origin) {
6767
// message.origin = window.location.origin
68-
console.log("CS: ", evt.data.eventName);
68+
// console.log("CS: ", evt.data.eventName);
6969
switch(evt.data.eventName) {
7070
case "cs_request__childtable_save":
7171
backgroundMessage('bg_request__childtable_save', evt.data.payload);

images/clipboard.png

-8.16 KB
Binary file not shown.

libs/tingle.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

manifest.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
}],
2525
"background": {
2626
"service_worker": "service-worker.js"
27-
},
28-
"web_accessible_resources": [
29-
{
30-
"resources": [ "images/clipboard.png" ],
31-
"matches": [ "<all_urls>" ]
32-
}
33-
]
27+
}
28+
// "web_accessible_resources": [
29+
// {
30+
// "resources": [ "images/clipboard.png" ],
31+
// "matches": [ "<all_urls>" ]
32+
// }
33+
// ]
3434
}

service-worker.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ function pageLoaded(tabId) {
5555
}
5656
} else {
5757
field.df.label += " (HIDDEN)";
58-
console.log(field);
5958
field.wrapper.style.color = "brown";
6059
if(control_label) {
6160
control_label.style.color = "brown";
@@ -96,8 +95,6 @@ function pageLoaded(tabId) {
9695
options: field.options
9796
})
9897
}
99-
100-
console.log(dialog_fields);
10198

10299
let d = new frappe.ui.Dialog({
103100
title: `IDF: Bulk Edit for ${checked.length} Rows.`,
@@ -151,13 +148,13 @@ function showOptionsDialog(args) {
151148
options: ` <div style="display: grid; grid-template-columns: repeat(3, 1fr)">
152149
<!-- first row -->
153150
<div>
154-
<p onclick="frappe.utils.copy_to_clipboard('${fieldData.df.fieldname}')" style="cursor: pointer;">Name: <strong>${fieldData.df.fieldname} </strong> <img src="${args.clipboardImage}" style="width: 18px; margin: -7px 7px -2px 4px;" /></p>
151+
<p onclick="frappe.utils.copy_to_clipboard('${fieldData.df.fieldname}')" style="cursor: pointer;">Name: <strong>${fieldData.df.fieldname} </strong> </p>
155152
</div>
156153
<div>
157154
<p ">Type: <strong>${fieldData.df.fieldtype} </strong></p>
158155
</div>
159156
<div>
160-
<p onclick="frappe.utils.copy_to_clipboard('${fieldData.df.options}')" style="cursor: pointer;">Options: <strong>${fieldData.df.options} </strong> <img src="${args.clipboardImage}" style="width: 18px; margin: -7px 7px -2px 4px;"/><p>
157+
<p onclick="frappe.utils.copy_to_clipboard('${fieldData.df.options}')" style="cursor: pointer;">Options: <strong>${fieldData.df.options} </strong> <p>
161158
</div>
162159
163160
<!-- second row -->
@@ -310,8 +307,6 @@ async function insertChildtableData(fieldname, tabId) {
310307

311308
// Customization
312309
async function saveCustomizedFields(payload) {
313-
console.log(payload)
314-
315310
await chrome.storage.local.set({
316311
"storage__customized_fields_data": payload
317312
});
@@ -355,18 +350,14 @@ async function insertCustomizedFields(tabId) {
355350
// listen for content script messages
356351
chrome.runtime.onMessage.addListener(async(event,sender,sendResponse)=>{
357352
const tabId = sender.tab.id;
358-
console.log("BG: ", event.eventName);
353+
// console.log("BG: ", event.eventName);
359354
switch (event.eventName) {
360355
case "bg_request__page_loaded":
361356
pageLoaded(tabId);
362357
break;
363358

364359
case "bg_request__show_field_options_dialog":
365-
let clipboardImage = chrome.runtime.getURL("images/clipboard.png");
366-
exec(showOptionsDialog, {
367-
fieldname: event.payload,
368-
clipboardImage
369-
}, tabId);
360+
exec(showOptionsDialog, {fieldname: event.payload}, tabId);
370361
break;
371362

372363
case "bg_request__childtable_save":

0 commit comments

Comments
 (0)