ソースを参照

try on emoji in Informer messages

Artur Paikin 8 年 前
コミット
c7bd306964
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/core/Core.js

+ 2 - 2
src/core/Core.js

@@ -342,12 +342,12 @@ class Uppy {
     const online = status || window.navigator.onLine
     const online = status || window.navigator.onLine
     if (!online) {
     if (!online) {
       this.emit('is-offline')
       this.emit('is-offline')
-      this.emit('informer', 'No internet connection', 'error', 0)
+      this.emit('informer', '⚠️ No internet connection', 'error', 0)
       this.wasOffline = true
       this.wasOffline = true
     } else {
     } else {
       this.emit('is-online')
       this.emit('is-online')
       if (this.wasOffline) {
       if (this.wasOffline) {
-        this.emit('informer', 'Connected!', 'success', 3000)
+        this.emit('informer', 'Connected 👌🏼', 'success', 3000)
         this.wasOffline = false
         this.wasOffline = false
       }
       }
     }
     }