Skip to content

Commit 6bfd30c

Browse files
committed
Recompiled lib and example
1 parent 7599a85 commit 6bfd30c

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

examples/vanilla/bundle.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@
227227
// called on this targetElement before.
228228
if (!targetElement) {
229229
// eslint-disable-next-line no-console
230-
console.warn(
231-
'targetElement must be provided, and disableBodyScroll must not have been called on this targetElement before.'
230+
console.error(
231+
'disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.'
232232
);
233233
return;
234234
}
@@ -310,7 +310,9 @@
310310
if (isIosDevice) {
311311
if (!targetElement) {
312312
// eslint-disable-next-line no-console
313-
console.warn('targetElement must be provided when calling enableBodyScroll.');
313+
console.error(
314+
'enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.'
315+
);
314316
return;
315317
}
316318

lib/bodyScrollLock.es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const disableBodyScroll = (targetElement, options) => {
129129
// called on this targetElement before.
130130
if (!targetElement) {
131131
// eslint-disable-next-line no-console
132-
console.warn('targetElement must be provided, and disableBodyScroll must not have been called on this targetElement before.');
132+
console.error('disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.');
133133
return;
134134
}
135135

@@ -197,7 +197,7 @@ export const enableBodyScroll = targetElement => {
197197
if (isIosDevice) {
198198
if (!targetElement) {
199199
// eslint-disable-next-line no-console
200-
console.warn('targetElement must be provided when calling enableBodyScroll.');
200+
console.error('enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.');
201201
return;
202202
}
203203

lib/bodyScrollLock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
// called on this targetElement before.
163163
if (!targetElement) {
164164
// eslint-disable-next-line no-console
165-
console.warn('targetElement must be provided, and disableBodyScroll must not have been called on this targetElement before.');
165+
console.error('disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.');
166166
return;
167167
}
168168

@@ -232,7 +232,7 @@
232232
if (isIosDevice) {
233233
if (!targetElement) {
234234
// eslint-disable-next-line no-console
235-
console.warn('targetElement must be provided when calling enableBodyScroll.');
235+
console.error('enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.');
236236
return;
237237
}
238238

lib/bodyScrollLock.min.js

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

0 commit comments

Comments
 (0)