sharepoint - make data-app-id configurable in yammer javascript SDK -
<script type="text/javascript" data-app-id="*****************" src="https://assets.yammer.com/assets/platform_js_sdk.js"></script>
i want make data-app-id configurable not static. developing sharepoint app part yammer. test , production networks different data-app-id both networks different.is there way can make configurable deploying on production don't need make change in code , can put in property.
i got solution. can this..
yammerappid = "***************"; if (yammerappid != "") { document.write('<script type="text/javascript" src="https://assets.yammer.com/assets/platform_js_sdk.js" data-app-id="' + yammerappid + '"><\/script>'); } else { alert("please configure yammer appid webpart property."); } </script>
Comments
Post a Comment