|
|
@@ -272,9 +272,7 @@ export default class BrowserDetection {
|
|
272
|
272
|
* greater than the passed version and false otherwise.
|
|
273
|
273
|
*/
|
|
274
|
274
|
isVersionGreaterThan(version) {
|
|
275
|
|
- if (this._version) {
|
|
276
|
|
- return this.compareVersion(version) === 1;
|
|
277
|
|
- }
|
|
|
275
|
+ return this.compareVersion(version) === -1;
|
|
278
|
276
|
}
|
|
279
|
277
|
|
|
280
|
278
|
/**
|
|
|
@@ -285,9 +283,7 @@ export default class BrowserDetection {
|
|
285
|
283
|
* lower than the passed version and false otherwise.
|
|
286
|
284
|
*/
|
|
287
|
285
|
isVersionLessThan(version) {
|
|
288
|
|
- if (this._version) {
|
|
289
|
|
- return this.compareVersion(version) === -1;
|
|
290
|
|
- }
|
|
|
286
|
+ return this.compareVersion(version) === 1;
|
|
291
|
287
|
}
|
|
292
|
288
|
|
|
293
|
289
|
/**
|
|
|
@@ -298,8 +294,6 @@ export default class BrowserDetection {
|
|
298
|
294
|
* equal to the passed version and false otherwise.
|
|
299
|
295
|
*/
|
|
300
|
296
|
isVersionEqualTo(version) {
|
|
301
|
|
- if (this._version) {
|
|
302
|
|
- return this.compareVersion(version) === 0;
|
|
303
|
|
- }
|
|
|
297
|
+ return this.compareVersion(version) === 0;
|
|
304
|
298
|
}
|
|
305
|
299
|
}
|