Revision 587c1a88
Added by koszko over 1 year ago
html/settings.html | ||
---|---|---|
35 | 35 |
#LOADCSS html/base.css |
36 | 36 |
#LOADCSS html/grid.css |
37 | 37 |
<style> |
38 |
#loader, #indexeddb_error { |
|
39 |
margin: auto; |
|
40 |
padding: 1em; |
|
41 |
max-width: 800px; |
|
42 |
} |
|
43 |
#indexeddb_error p { |
|
44 |
margin-bottom: 1em; |
|
45 |
} |
|
46 |
|
|
38 | 47 |
/* Style top menu items. */ |
39 | 48 |
#tab_heads>* { |
40 | 49 |
background-color: #70AF70; |
... | ... | |
114 | 123 |
#INCLUDE html/item_preview.html |
115 | 124 |
#INCLUDE html/text_entry_list.html |
116 | 125 |
#INCLUDE html/payload_create.html |
117 |
<ul id="tab_heads"> |
|
118 |
<li id="blocking_head"> Blocking </li> |
|
119 |
<li id="mappings_head"> Mappings </li> |
|
120 |
<li id="resources_head"> Resources </li> |
|
121 |
<li id="new_payload_head" class="active_head"> New payload </li> |
|
122 |
<li id="repos_head"> Repositories </li> |
|
123 |
</ul> |
|
124 |
<div id="top_menu_line" class="top_line"></div> |
|
125 |
<div id="blocking_tab" class="tab"> |
|
126 |
<div id="blocking_editable_container" class="grid_2"> |
|
127 |
<div id="blocking_list_container"> |
|
128 |
<h3>Block scripts on</h3> |
|
129 |
</div> |
|
130 |
<div id="allowing_list_container"> |
|
131 |
<h3>Allow scripts on</h3> |
|
126 |
<div id="loader"> |
|
127 |
Loading settings page... |
|
128 |
</div> |
|
129 |
<div id="indexeddb_error" class="hide"> |
|
130 |
<p> |
|
131 |
Cannot display settings page. |
|
132 |
</p> |
|
133 |
<p> |
|
134 |
Haketilo could not access IndexedDB. IndexedDB is an in-browser |
|
135 |
database in which Haketilo stores all its configuration. Without it, the |
|
136 |
settings page is non-operational. |
|
137 |
<p> |
|
138 |
#IF MOZILLA |
|
139 |
<div id="indexeddb_private_mode_explanation" class="hide"> |
|
140 |
<p> |
|
141 |
This issue is the result of using Haketilo in Private Browsing mode. |
|
142 |
For privacy reasons your browser blocks access to IndexedDB in |
|
143 |
private windows and this unfortunately also affects Haketilo's |
|
144 |
settings page. |
|
145 |
</p> |
|
146 |
<p> |
|
147 |
You can sacrifice this single privacy feature and enable IndexedDB |
|
148 |
access in private windows by navigating to "about:config" in the URL |
|
149 |
bar, agreeing to accept the risk and setting the |
|
150 |
"dom.indexedDB.privateBrowsing.enabled" preference to "true". Those |
|
151 |
pages that have their scripts blocked will still be unable to access |
|
152 |
IndexedDB. |
|
153 |
</p> |
|
154 |
<p> |
|
155 |
Alternatively, you can open Haketilo's settings in a separate, |
|
156 |
non-private window. The configuration you make there will take |
|
157 |
effect on pages opened in Private Browsing mode as well. |
|
158 |
</p> |
|
132 | 159 |
</div> |
133 |
<div id="default_policy_dialog" class="grid_col_both text_center"> |
|
160 |
#ENDIF |
|
161 |
</div> |
|
162 |
<div id="main_view" class="hide"> |
|
163 |
<ul id="tab_heads"> |
|
164 |
<li id="blocking_head"> Blocking </li> |
|
165 |
<li id="mappings_head"> Mappings </li> |
|
166 |
<li id="resources_head"> Resources </li> |
|
167 |
<li id="new_payload_head" class="active_head"> New payload </li> |
|
168 |
<li id="repos_head"> Repositories </li> |
|
169 |
</ul> |
|
170 |
<div id="top_menu_line" class="top_line"></div> |
|
171 |
<div id="blocking_tab" class="tab"> |
|
172 |
<div id="blocking_editable_container" class="grid_2"> |
|
173 |
<div id="blocking_list_container"> |
|
174 |
<h3>Block scripts on</h3> |
|
175 |
</div> |
|
176 |
<div id="allowing_list_container"> |
|
177 |
<h3>Allow scripts on</h3> |
|
178 |
</div> |
|
179 |
<div id="default_policy_dialog" class="grid_col_both text_center"> |
|
134 | 180 |
#INCLUDE html/default_blocking_policy.html |
181 |
</div> |
|
135 | 182 |
</div> |
183 |
<div id="blocking_dialog_container" class="hide"></div> |
|
184 |
</div> |
|
185 |
<div id="mappings_tab" class="tab"></div> |
|
186 |
<div id="resources_tab" class="tab"></div> |
|
187 |
<div id="new_payload_tab" class="tab active_tab"></div> |
|
188 |
<div id="repos_tab" class="tab"> |
|
189 |
<div id="repos_list_container"></div> |
|
190 |
<div id="repos_dialog_container" class="hide"></div> |
|
136 | 191 |
</div> |
137 |
<div id="blocking_dialog_container" class="hide"></div> |
|
138 |
</div> |
|
139 |
<div id="mappings_tab" class="tab"></div> |
|
140 |
<div id="resources_tab" class="tab"></div> |
|
141 |
<div id="new_payload_tab" class="tab active_tab"></div> |
|
142 |
<div id="repos_tab" class="tab"> |
|
143 |
<div id="repos_list_container"></div> |
|
144 |
<div id="repos_dialog_container" class="hide"></div> |
|
145 | 192 |
</div> |
146 | 193 |
#LOADJS html/settings.js |
147 | 194 |
</body> |
Also available in: Unified diff
display an informative message in settings page if IndexedDB cannot be accessed