Skip to content

Instantly share code, notes, and snippets.

@swieton
Created April 29, 2011 20:53
Show Gist options
  • Save swieton/949022 to your computer and use it in GitHub Desktop.
Save swieton/949022 to your computer and use it in GitHub Desktop.
Creating Firefox permissions for offline web apps
$ mkdir prototype_profile
$ cd prototype_profile
$ sqlite3 permissions.sqlite3 # This filename is important
sqlite> CREATE TABLE moz_hosts ( id INTEGER PRIMARY KEY,host TEXT,type TEXT,permission INTEGER, expireType INTEGER, expireTime INTEGER);
sqlite> INSERT INTO "moz_hosts" VALUES(1,'localhost','offline-app',1,NULL,NULL);
sqlite> .quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment