Skip to content

Commit

Permalink
Use whole Roboto font, not subset. Fix typo
Browse files Browse the repository at this point in the history
And remove comment
  • Loading branch information
Jason Pang committed Jul 8, 2016
1 parent b8594cf commit ceec3c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/OneSignal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ must be opened as a result of a subscription call.</span>`);
}
else if ('serviceWorker' in navigator && !OneSignal.isUsingSubscriptionWorkaround()) // If HTTPS - Show native prompt
OneSignal._registerForW3CPush(options);
else { // TODO &&
else {
if (OneSignal.config.autoRegister !== true) {
log.debug('OneSignal: Not automatically showing popover because autoRegister is not specifically true.');
}
Expand Down
2 changes: 1 addition & 1 deletion src/bell/ActiveAnimatedElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class ActiveAnimatedElement extends AnimatedElement {
if (this.inactive)
return Promise.resolve(this);
else return new Promise((resolve) => {
OneSignal.oncew(ActiveAnimatedElement.EVENTS.INACTIVE, (event) => {
OneSignal.once(ActiveAnimatedElement.EVENTS.INACTIVE, (event) => {
if (event === this) {
return resolve(this);
}
Expand Down
8 changes: 2 additions & 6 deletions src/popover/popover.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
$popover-transition-duration: 400ms;
$border-radius: 2px;

@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/l/font?kit=Tc9Dk7UP-O5wKOy5yWA_gPzT3HLlM0olb3Jp1hLG85RGzn8iC_SrKQsTfHpL0EAc6KvBi6nAuhqz2DjzQt0A0w&skey=a0a0114a1dcab3ac&v=v15) format('woff2');
}
@import 'https://fonts.googleapis.com/css?family=Roboto';

#onesignal-popover-container {
font-size: 14px;
position: fixed;
Expand Down

0 comments on commit ceec3c1

Please sign in to comment.