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

Url change for figma files #5

Open
cassandragoodby opened this issue Sep 12, 2024 · 2 comments
Open

Url change for figma files #5

cassandragoodby opened this issue Sep 12, 2024 · 2 comments

Comments

@cassandragoodby
Copy link

In the main.js and figma.service.ts file you have to change
__this.url = new RegExp('/file/([^/]+)/').exec(t.url)[1];
to
__this.url = new RegExp('/design/([^/]+)/').exec(t.url)[1];

The new url structure of figma has changed the file to design to capture the file id

@ccimpoi
Copy link
Owner

ccimpoi commented Sep 14, 2024

Hi @cassandragoodby I pushed the change in the service file to master.
It s been a while since I used Figma and in order to test it myself I would need to redo the node setup, compile the dist folder and test in Figma.
So it would be great if you can confirm it is working as expected and I do not have to do all the above...
:-)

@cassandragoodby
Copy link
Author

It did not propagate from the src file to the unpacked file. Do you remember the steps you took to generate the unpacked version from the angular project? I'd be happy to run them locally, test and then upload to github if you recall the process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants