newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
897 stars 145 forks source link

Prevent having multiple layers with name "ai2html-settings" #113

Closed kevinschaul closed 5 years ago

kevinschaul commented 5 years ago

A coworker copied an ai2html-settings text box to create an ai2html-css text box, and edited its contents to include css instead of settings. The script injected cache_bust_token: XX into his ai2html-css block from then on, because the css text box's name was also ai2html-settings. (The function updateSettingsEntry looks up the text boxes by their name, assuming there will be only one with the name ai2html-settings.

This tweak prevents that scenario by resetting the name of text boxes that do not contain ai2html settings.