mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 06:31:28 +02:00
use correct localStorage method for setting content (#684)
This commit is contained in:
committed by
Ian Storm Taylor
parent
a28075edc1
commit
6333275aa0
@@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user