mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
[next] Save Comment Draft + Pym Storage (#1843)
* Implement pym storage * Save comment draft + test * Apply suggestions * Use class for PymStorage implementation * Add some comments
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
withClickEvent,
|
||||
withEventEmitter,
|
||||
withIOSSafariWidthWorkaround,
|
||||
withPymStorage,
|
||||
withSetCommentID,
|
||||
} from "./decorators";
|
||||
import PymControl from "./PymControl";
|
||||
@@ -29,6 +30,8 @@ export function createPymControl(config: CreatePymControlConfig) {
|
||||
withClickEvent,
|
||||
withSetCommentID,
|
||||
withEventEmitter(config.eventEmitter),
|
||||
withPymStorage(localStorage, "localStorage"),
|
||||
withPymStorage(sessionStorage, "sessionStorage"),
|
||||
];
|
||||
|
||||
const query = qs.stringify({
|
||||
|
||||
Reference in New Issue
Block a user