From 25e43fb01baaf0d981abe137fa0fa563177f7834 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Thu, 2 Oct 2014 10:26:02 +0300 Subject: [PATCH] docs(README): fix setDriver typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2cf889..9cd435b 100644 --- a/README.md +++ b/README.md @@ -170,13 +170,13 @@ alert(localforage.driver()); // If you're using modules, things load asynchronously, so you should use // callbacks or promises to ensure things have loaded. -localforage.setDriver(LOCALSTORAGE, function() { +localforage.setDriver(localforage.LOCALSTORAGE, function() { alert(localforage.driver()); }); => 'localStorageWrapper' // The promises version: -localforage.setDriver(LOCALSTORAGE).then(function() { +localforage.setDriver(localforage.LOCALSTORAGE).then(function() { alert(localforage.driver()); }); => 'localStorageWrapper'