Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update info.ts #399

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/info/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@
let label = browser.i18n.getMessage("renderingLabel");

let count = 1;
<<<<<<< HEAD
if (renderings) {
=======
if(renderings){
>>>>>>> b0ae8da4c5d10b979bf8f430dee9c84a3c24efff
for (let rendering of renderings["renderings"]) {
let container = document.createElement("section");
container.classList.add("container");
Expand All @@ -91,11 +88,8 @@
labelButton.textContent = label + " " + count + ": " + rendering["description"];
headerElement.append(labelButton);
container.append(headerElement);
<<<<<<< HEAD

=======

>>>>>>> b0ae8da4c5d10b979bf8f430dee9c84a3c24efff
if (rendering["type_id"] === RENDERERS.text) {
let contentDiv = utils.addRenderingContent(container, contentId);
const text = rendering["data"]["text"] as string;
Expand Down Expand Up @@ -280,7 +274,7 @@

// Load localised labels for the title, footer, buttons, etc.
//queryLocalisation();
});

Check failure on line 277 in src/info/info.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.

// window.addEventListener("beforeunload", function(e){
// e.preventDefault();
Expand All @@ -292,4 +286,4 @@
port.postMessage({
"type": "info",
"request_uuid": request_uuid
});
});
Loading