Page 1 of 2
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 11:28 am
by Benny Halperin
The resource I added was one that actually can't be added through Appery's external resources bcoz it is a script tag with attributes. However, this case represents any resource that is mistyped, and should be removable.
I tried to add and remove another resource, as suggested in an old post here, but to no avail. I don't want to manually remove from source file each time I publish.
This is the external resource list after deleting:
This is the leftover:
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 12:51 pm
by Maryna Brodina
Hello!
After you edited corresponding file on Source tab, changes you do through editor which are connected to this file, won't be applied. You have to delete edited file and Undo all source changes.
You can add your external resource dynamically using JS code.
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 12:53 pm
by Benny Halperin
I did not edit the corresponding file on Source tab!!
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 12:59 pm
by Maryna Brodina
Sorry, there might be misunderstanding. Could you clarify in more details what have you done and what exactly doesn't work? Post steps to reproduce, perhaps more screenshots...
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 1:00 pm
by Benny Halperin
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 1:09 pm
by Benny Halperin
It's ok, I may have been unclear.
Steps to reproduce:
ol
liApp settings/External resources tab/li
liTyped in user-defined resource textbox the following:code<script type="text/javascript" src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js data-apikey="my-api-key"></script>/code/li
liClicked Add/li
liSaved/li
liSelected new resource in list/li
liClicked Delete/li
liSaved/li
/ol
The resource I added is illegal syntax I know. I think you should take it as a case of simply mistyping a legal resource, adding an extra "" character, etc.
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 2:20 pm
by Maryna Brodina
It's a bug, we'll fix it. You can post (or send to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a) your project GUID so we can delete unnecessary resources from your project.
Please note you would need to close app. After we delete these resources on our side, go to Source tab--WEB_RESOURCES, delete all .html files and undo all source changes.
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 3:38 pm
by Benny Halperin
Thanks!
I'm emailing GUID separately.
Which of the html files do I need to delete? I have the auto-generated, and some I created myself in my custom folder files/data. see screenshot below.
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 6:28 pm
by Maryna Brodina
Thank you for email! We'll let you know when delete unnecessary resource from project and post more details about files you have to delete, but it might take some time... Sorry for inconvenience.
Removing external user-defined script resource removes from list, but resource is still in head section in source
Posted: Tue Feb 25, 2014 7:09 pm
by Kateryna Grynko
Hi Benny,
We sent you the fixed app backup to your email.