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:
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 = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user