additional pwa testing bits

This commit is contained in:
Morgan McMillian 2018-11-11 07:53:28 -08:00
parent abd237fc64
commit 198b804f2e
3 changed files with 7 additions and 5 deletions

View file

@ -35,11 +35,14 @@ $(APK): $(ALIGNED)
release: $(APK)
clean: androidclean
clean: androidclean wwwclean
androidclean:
cd platforms/android && ./gradlew clean
wwwclean:
rm -r www
distclean:
rm -r node_modules platforms plugins www
@ -53,6 +56,5 @@ ut:
cd ubuntutouch && clickable
pwa:
npm run ionic:build
cp resources/icon-512.png www/assets/icon.png
ionic build --prod
cp -r www ~/opt/Goober

BIN
src/assets/icon/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -58,13 +58,13 @@ export class LoginPage {
login() {
this.oauth.logInVia(this.pnutProvider).then(success => {
console.log('RESULT: ' + JSON.stringify(success));
// console.log('OAUTH SUCCESS: ' + JSON.stringify(success));
this.storage.set('token', success['access_token']);
this.storage.set('scope', this.scope);
pnut.token = success['access_token'];
this.navCtrl.setRoot(StreamPage, {stream: 'personal'});
}, error => {
console.log(error);
// console.log('OAUTH ERROR: ' + JSON.stringify(error));
if (this.oob) {
this.showToken = true;
}