We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1dbc48 commit d601129Copy full SHA for d601129
examples/shopping-cart/api/shop.js
@@ -15,7 +15,7 @@ export default {
15
buyProducts (products, cb, errorCb) {
16
setTimeout(() => {
17
// simulate random checkout failure.
18
- (Math.random() > 0.5 || navigator.userAgent.indexOf('PhantomJS') > -1)
+ (Math.random() > 0.5 || navigator.webdriver)
19
? cb()
20
: errorCb()
21
}, 100)
0 commit comments