Skip to content

Commit

Permalink
Fixed resize buttons again
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Jan 16, 2024
1 parent 7aecfe1 commit 818de15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/background/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ chrome.action.onClicked.addListener(function(tab) {
});

chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
if (request && request.action === "resizeWindow") {
if (request && request.type === "resizeWindow") {
chrome.windows.getCurrent(function (window) {
var updateInfo = { width: parseInt(request.width), height: parseInt(request.height) };
(updateInfo.state = "normal"), chrome.windows.update(window.id, updateInfo);
chrome.windows.update(window.id, updateInfo);
});
}
});
2 changes: 1 addition & 1 deletion src/dialog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ <h3 class="pixel-perfect--text">
<div id="pixel-perfect-section--devices">
<div class="pixel-perfect--glass-element" style="border-radius: 10px; padding: 10px 0 30px 0; margin: 10px 0;">
<div class="pixel-perfect--icons">
<div data-pixel-perfect-width="750">
<div data-pixel-perfect-width="750" data-pixel-perfect-height="1334">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="pixel-perfect--tertiary-background">
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3" />
</svg>
Expand Down

0 comments on commit 818de15

Please sign in to comment.