I created a sharepoint hosted app with 2 lists inside,
I then added a sharepoint app part to my app. The app.js code inside is the same, its working in my app but when i add the app part to my site it says: L_Menu_BaseUrl is not defined
I use L_Menu_BaseUrl in my url for a ajax call to retrieve the list in the app.
webservice = window.location.protocol + "//" + window.location.hostname + port + L_Menu_BaseUrl + "/_vti_bin/lists.asmx";