Hiding refresh token when not in test mode
This commit is contained in:
2
build.sh
2
build.sh
@ -22,5 +22,7 @@ sed -i 's/app.js/app.min.js?'$CACHEBUSTER'/g' mopidy_iris/static/index.html
|
||||
sed -i 's/app.css/app.min.css?'$CACHEBUSTER'/g' mopidy_iris/static/index.html
|
||||
sed -i 's/app.js/app.js?'$CACHEBUSTER'/g' mopidy_iris/static/test.html
|
||||
sed -i 's/app.css/app.css?'$CACHEBUSTER'/g' mopidy_iris/static/test.html
|
||||
sed -i 's/app.css/app.css?'$CACHEBUSTER'/g' mopidy_iris/static/test.html
|
||||
sed -i 's/<\/head>/\t<script type="text\/javascript">window._testMode = true;<\/script>\n\n<\/head>/g' mopidy_iris/static/test.html
|
||||
|
||||
echo -e "\x1b[32;01m"Done!"\x1b[39;49;00m"
|
||||
@ -84,7 +84,8 @@ class SpotifyAuthenticationFrame extends React.Component{
|
||||
}
|
||||
|
||||
renderRefreshButton(){
|
||||
if( !this.props.authorized ) return null;
|
||||
console.log(typeof(window._testMode));
|
||||
if( !this.props.authorized || !window._testMode) return null;
|
||||
|
||||
if( this.props.refreshing_token ){
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user