Skip to content

Commit

Permalink
Apply standard --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiri-janousek committed Nov 8, 2020
1 parent b8b52d5 commit 44cb43d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

(function (Nuvola) {
// Translations
var _ = Nuvola.Translate.gettext
const _ = Nuvola.Translate.gettext

// Constants
var RUN_IN_BACKGROUND = 'app.run_in_background'
const RUN_IN_BACKGROUND = 'app.run_in_background'

// Create new WebApp prototype
var WebApp = Nuvola.$WebApp()
const WebApp = Nuvola.$WebApp()

WebApp._onInitAppRunner = function (emitter) {
Nuvola.launcher.setActions(['quit'])
Expand All @@ -46,7 +46,7 @@
WebApp._onInitWebWorker = function (emitter) {
Nuvola.WebApp._onInitWebWorker.call(this, emitter)

var state = document.readyState
const state = document.readyState
if (state === 'interactive' || state === 'complete') {
this._onPageReady()
} else {
Expand All @@ -59,7 +59,7 @@
console.log.bind(console))
Nuvola.core.connect('ComponentLoaded', this)
Nuvola.core.connect('ComponentUnloaded', this)
var alert = window.alert
const alert = window.alert
window.alert = (text) => {
if (this.notificationsEnabled) {
Nuvola.Notifications.showNotification(_('Google Calendar Alert'), text, 'appointment-soon', null, true)
Expand Down

0 comments on commit 44cb43d

Please sign in to comment.