1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-16 03:12:48 +02:00

use correct localStorage method for setting content (#684)

This commit is contained in:
Conor Cussell 2017-03-24 23:19:23 +00:00 committed by Ian Storm Taylor
parent a28075edc1
commit 6333275aa0

View File

@ -243,7 +243,7 @@ class App extends React.Component {
// When the document changes, save the serialized HTML to Local Storage.
onDocumentChange = (document, state) => {
const string = html.serialize(state)
localStorage.set('content', string)
localStorage.setItem('content', string)
}
render = () => {