@pixra/chrome-icons 0.0.5 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2420,7 +2420,13 @@ async function exportChromeIcons() {
|
|
|
2420
2420
|
zip.file(`icon-${size}.png`, arrayBuffer);
|
|
2421
2421
|
}
|
|
2422
2422
|
const zipBlob = await zip.generateAsync({ type: "arraybuffer" });
|
|
2423
|
-
await pixra.
|
|
2423
|
+
const activeTab = await pixra.tabs.getActive();
|
|
2424
|
+
const baseName = activeTab?.name.replace(/\.[^.]+$/, "");
|
|
2425
|
+
if (!baseName) {
|
|
2426
|
+
throw new Error("Failed to determine base filename from active tab");
|
|
2427
|
+
}
|
|
2428
|
+
const filename = `${baseName}-chrome-icons.zip`;
|
|
2429
|
+
await pixra.window.saveFile({ filename, data: zipBlob });
|
|
2424
2430
|
await pixra.window.showInformationMessage(
|
|
2425
2431
|
`Exported ${ICON_SIZES.length} icons: ${ICON_SIZES.join(", ")}px`
|
|
2426
2432
|
);
|
|
@@ -2453,4 +2459,4 @@ jszip/dist/jszip.min.js:
|
|
|
2453
2459
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
2454
2460
|
*)
|
|
2455
2461
|
*/
|
|
2456
|
-
//# sourceMappingURL=plugin.
|
|
2462
|
+
//# sourceMappingURL=plugin.map
|
package/dist/plugin.json
CHANGED