Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit190145c

Browse files
committed
adding browserify support
1 parentf07405b commit190145c

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

‎client/dist/responsive-nav.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@
494494

495495
};
496496

497-
window.responsiveNav=responsiveNav;
498-
497+
if(typeofmodule!=="undefined"&&module.exports){
498+
module.exports=responsiveNav;
499+
}
500+
else{
501+
window.responsiveNav=responsiveNav;
502+
}
499503
}(document,window,0));

‎client/dist/responsive-nav.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎client/src/responsive-nav.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@
381381

382382
};
383383

384-
window.responsiveNav=responsiveNav;
385-
384+
if(typeofmodule!=="undefined"&&module.exports){
385+
module.exports=responsiveNav;
386+
}
387+
else{
388+
window.responsiveNav=responsiveNav;
389+
}
386390
}(document,window,0));

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name":"responsive-nav",
33
"version":"1.0.32",
44
"description":"Responsive Nav JS plugin",
5-
"main":"index.js",
5+
"main":"responsive-nav.js",
66
"scripts": {
77
"test":"grunt test --verbose"
88
},

‎responsive-nav.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@
494494

495495
};
496496

497-
window.responsiveNav=responsiveNav;
498-
497+
if(typeofmodule!=="undefined"&&module.exports){
498+
module.exports=responsiveNav;
499+
}
500+
else{
501+
window.responsiveNav=responsiveNav;
502+
}
499503
}(document,window,0));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp