On single page apps, the DOM injection has the potential of getting wiped out. This makes a check that we have the injected DOM elements on every save request. If we have them, we do nothing, if they are absent we inject them.
Todos:
[x] Separate the DOM injection into an exportable function
[x] Add DOM check to injection function
[x] Call DOM Inject on SAVE_TO_POCKET_REQUEST
All Submissions:
[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Goal
On single page apps, the DOM injection has the potential of getting wiped out. This makes a check that we have the injected DOM elements on every save request. If we have them, we do nothing, if they are absent we inject them.
Todos:
SAVE_TO_POCKET_REQUEST
All Submissions: