Closed tyrope closed 11 years ago
Have you cleared the history of Firefox? This may include clearing cookie and would erase all data of IITC including keys data.
If not: Did the disappeared key reappear in next reload? Or disappear forever? Is the disappear of keys recurring or just happen one time?
Could you try to run following 2 statements in Web Console? Are they equal to the number of portals you have inputted keys?
Object.keys(window.plugin.keys.keys).length
Object.keys(JSON.parse(localStorage['plugin-keys-data']).keys).length
Strange thing is, it doesn't delete ALL keys, it resets to old data, as if the data got set to read-only after my Nth writing of the keys... after that as far as I can see, it's all the time.
As for executing the statements.. I have yet to ever work with javascript, so mind telling me how?
I wonder - is there a limit on the amount of data stored? approx how many keys have you entered? Are you seeing any errors in the javascript console?
to see the console:
the console is also where you can enter the two test commands above
To count the amount of keys I opened the intel page today, being surprised by the data having changed to the more accurate one... results of the 2 commands:
[09:55:14.815] Object.keys(window.plugin.keys.keys).length
[09:55:14.816] 22
[09:55:17.767] Object.keys(JSON.parse(localStorage['plugin-keys-data']).keys).length
[09:55:17.768] 22
This is, as far as I can count, is accurate... if/when it fails again I'll execute the same commands (I can't believe I didn't notice the input box last night...)
I found the problem, keys don't share between http (autocomplete) and https (bookmarks), so they're two sets of data...
Edited title to be more descriptive.
I don't know if it's possible for us to easily share the cookie between http and https - but, in the meantime, a workaround is to use the "force-https" plugin to ensure you always access the site the same way.
Alright, thanks for the information, enabled force-https.
http://stackoverflow.com/questions/10502469/is-there-any-workaround-to-make-use-of-html5-localstorage-on-both-http-and-https Seems not possible to implement in IITC.
Sounds like this should be marked a wontfix then, @jonatkins. At least we figured out the problem. :)
I wonder if it's worth adding a cookie (which can be accessed on both http and https), just to tell the keys addon which protocol was last used for storage. That way, if the user visits over the other one, it can at least warn.
Alternatively, some external storage method would be the way to go - there's some suggestions here already mentioning dropbox and/or google docs
The new 'sync' plugin might actually fix this now, syncing to an external source should work just as well between http and https on one browser instance as it does between multiple browsers.
Lately I've noticed most of my keys not loading properly, neither on the map or in the portal information panel.
Version information: