how to post raw script in theme

Highlighted
New Member
14 0 0

i have seen this code being inserted in my theme file when i installed one app and it was only asking write_script_tag permission and i use script_tag regularly and i know that if script tag is used without src attribute it will return error, so my question is how they are able to insert raw code like this 

 

<!-- **BEGIN** app name // Main - DO NOT MODIFY -->
<script type="application/javascript">
window.app_nameee = {
p1: [

],
p2: [

],
p3: {

}
};
</script>
<!-- **END** app name Integration // Main - DO NOT MODIFY -->

i found this in my store raw html code at the end of file. 

 

they are using script tag or they are editing full theme file and adding there code and again saving ?/

 

any help in right direction will be great

0 Likes