Skip to content

Commit 5f8fc85

Browse files
committed
Fix manifest. Absolute import to not check autolayout
1 parent 16dfe5f commit 5f8fc85

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

manifest.json

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"allowedDomains": [
1010
"https://figma.com",
1111
"https://*.amplitude.com",
12+
"https://builder.io",
1213
"https://*.builder.io",
1314
"https://www.googletagmanager.com",
1415
"https://*.openai.com",
@@ -18,6 +19,7 @@
1819
"devAllowedDomains": [
1920
"https://figma.com",
2021
"https://*.amplitude.com",
22+
"https://builder.io",
2123
"https://*.builder.io",
2224
"https://www.googletagmanager.com",
2325
"https://*.openai.com",

plugin/ui.tsx

+13-7
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,20 @@ class App extends SafeComponent {
567567
};
568568

569569
this.isValidImport = null;
570-
parent.postMessage(
571-
{
572-
pluginMessage: {
573-
type: "checkIfCanGetCode",
570+
if (this.useAbsolute) {
571+
// In the case of absolute import
572+
// We don't care about autolayout
573+
this.isValidImport = true;
574+
} else {
575+
parent.postMessage(
576+
{
577+
pluginMessage: {
578+
type: "checkIfCanGetCode",
579+
},
574580
},
575-
},
576-
"*"
577-
);
581+
"*"
582+
);
583+
}
578584

579585
this.generatingCode = true;
580586

0 commit comments

Comments
 (0)