additional pwa testing bits
This commit is contained in:
parent
abd237fc64
commit
198b804f2e
3 changed files with 7 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -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
BIN
src/assets/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue