mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 14:41:23 +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.
|
// When the document changes, save the serialized HTML to Local Storage.
|
||||||
onDocumentChange = (document, state) => {
|
onDocumentChange = (document, state) => {
|
||||||
const string = html.serialize(state)
|
const string = html.serialize(state)
|
||||||
localStorage.set('content', string)
|
localStorage.setItem('content', string)
|
||||||
}
|
}
|
||||||
|
|
||||||
render = () => {
|
render = () => {
|
||||||
|
Reference in New Issue
Block a user