1
1
const path = require ( 'path' )
2
2
const { writeFileSync, readFileSync } = require ( 'fs' )
3
3
const hashSum = require ( 'hash-sum' )
4
- const debug = require ( 'debug' ) ( 'nuxt:pwa' )
5
4
const { defaultsDeep } = require ( 'lodash' )
6
5
7
6
const fixUrl = url => url . replace ( / \/ \/ / g, '/' ) . replace ( ':/' , '://' )
@@ -13,7 +12,6 @@ const isUrl = url => url.indexOf('http') === 0 || url.indexOf('//') === 0
13
12
14
13
module . exports = function nuxtOneSignal ( moduleOptions ) {
15
14
const hook = ( ) => {
16
- debug ( 'Adding OneSignal' )
17
15
addOneSignal . call ( this , moduleOptions )
18
16
}
19
17
@@ -92,18 +90,12 @@ function addOneSignal (moduleOptions) {
92
90
if ( ! this . options . manifest ) {
93
91
this . options . manifest = { }
94
92
}
95
- if ( this . options . manifest . gcm_sender_id ) {
96
- debug ( 'WARNING: Overriding gcm_sender_id for OnSignal' )
97
- }
98
93
this . options . manifest . gcm_sender_id = options . GcmSenderId
99
94
100
95
// Adjust swURL option of Workbox for oneSignal
101
96
if ( ! this . options . workbox ) {
102
97
this . options . workbox = { }
103
98
}
104
- if ( this . options . workbox . swURL ) {
105
- debug ( 'WARNING: Overriding swURL for OneSignal' )
106
- }
107
99
this . options . workbox . swURL = 'OneSignalSDKWorker.js'
108
100
109
101
// Provide OneSignalSDKWorker.js and OneSignalSDKUpdaterWorker.js
0 commit comments