erictsangx / fire-drag

Firefox add-on: provide drag-and-drop utilities for texts and links
32 stars 14 forks source link

cannot open option.html #56

Closed zzz1zzz1 closed 2 years ago

qwinsi commented 3 years ago

Me too. The option.html is entirely blank. My Environment: Firefox 87.0 on Arch Linux (x64)

DavidEmmel commented 3 years ago

Same here, opening the options yields a blank page. FF 89.0.2

yuliu commented 3 years ago

You may temporarily disable the security.csp.enable option in about:config, then configure the extension and re-enable this option.

Hope @erictsangx could update the addon to fix the issue.

qwinsi commented 3 years ago

You may temporarily disable the security.csp.enable option in about:config, then configure the extension and re-enable this option.

Hope @erictsangx could update the addon to fix the issue.

This works. Thanks.

devsikander commented 3 years ago

Console shows these errors about Content Security Policies:

[Vue warn]: It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions. vue.js:634:17
    VueJS 5
    init moz-extension://567ffb0c-7a24-44c6-bebe-15fdee6d414d/options/options.js:33
[Vue warn]: Error compiling template:

invalid expression: call to Function() blocked by CSP in

    saveForm

  Raw expression: @submit="saveForm"

1  |  
2  |          <div class="container-fluid">
3  |              <form class="list-group" @submit="saveForm">
   |                                       ^^^^^^^^^^^^^^^^^^
4  |                  <div class="list-group-item">
5  |                      <label for="searchEngine">Search Engine URL(e.g. https://www.google.com/search?q=@@ ->

(found in <Root>)
erictsangx commented 2 years ago

Revamped with React and released the new version. The preference page is working now.