Skip to content

Commit d99ade4

Browse files
committed
Remove module import/export syntax from src/push-notifications
1 parent 2d55166 commit d99ade4

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/push-notifications.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
/* eslint-disable import/no-import-module-exports */
2-
/* eslint-disable-next-line no-global-assign */
3-
import sendGCM from './sendGCM';
4-
import sendFCM from './sendFCM';
5-
import APN from './sendAPN';
6-
import sendADM from './sendADM';
7-
import sendWNS from './sendWNS';
8-
import sendWebPush from './sendWeb';
9-
10-
import {
1+
const sendGCM = require('./sendGCM');
2+
const sendFCM = require('./sendFCM');
3+
const APN = require('./sendAPN');
4+
const sendADM = require('./sendADM');
5+
const sendWNS = require('./sendWNS');
6+
const sendWebPush = require('./sendWeb');
7+
8+
const {
119
DEFAULT_SETTINGS,
1210
UNKNOWN_METHOD,
1311
WEB_METHOD,
@@ -16,7 +14,7 @@ import {
1614
GCM_METHOD,
1715
FCM_METHOD,
1816
APN_METHOD,
19-
} from './constants';
17+
} = require('./constants');
2018

2119
class PN {
2220
constructor(options) {

0 commit comments

Comments
 (0)