aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup-proxy.js
Commit message (Collapse)AuthorAge
* Popup proxy host refactor (#516)toasted-nutbread2020-05-08
| | | | | | | | | | | | | | | | | | | | | | | * Rename PopupProxyHost to PopupFactory * Update FrontendApiReceiver to support non-async handlers * Make some functions non-async * Make setCustomCss non-async * Make setContentScale non-async * Remove static * Rename variables * Pass frameId into PopupFactory's constructor * Change FrontendApiReceiver source from popup-proxy-host to popup-factor * Rename _invokeHostApi to _invoke * Rename PopupProxy.getHostUrl to getUrl
* Error logging refactoring (#454)toasted-nutbread2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create new logging methods on yomichan object * Use new yomichan.logError instead of global logError * Remove old logError * Handle unhandledrejection events * Add addEventListener stub * Update log function * Update error conversion to support more types * Add log event * Add API log function * Log errors to the backend * Make error/warning logs update the badge * Clear log error indicator on extension button click * Log correct URL on the background page * Fix incorrect error conversion * Remove unhandledrejection handling Firefox doesn't support it properly. * Remove unused argument type from log function * Improve function name * Change console.warn to yomichan.logWarning * Move log forwarding initialization into main scripts
* Update Popup and DisplayFloat optionsContext from Frontend (#464)siikamiika2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | * set optionsContext from Frontend * update Popup+Display options on Frontend change * remove popup setOptions * only update DisplayFloat options from Frontend * fix optionsContext usage * fix preview frame arguments * keep Frontend URL up to date * cache url * fix preview frame * trigger modifyingProfileChange in correct places * remove async from function not using await * refactor optionsContext in Frontend
* show popup inside iframe for closed shadow domsiikamiika2020-04-18
|
* Update license author field to broader to explicitly reflect thatAlex Yatskov2020-04-10
| | | | | Yomichan is an ongoing community project. It really does take a village, and everyone who contributes code owns a part of it :)
* refactor _updateFrameOffsetsiikamiika2020-04-05
|
* reduce code duplicationsiikamiika2020-04-05
|
* give a name to a timeoutsiikamiika2020-04-05
|
* move broadcastRootPopupInformation to Frontendsiikamiika2020-04-05
|
* default to [0, 0] when sourceFrame is not foundsiikamiika2020-04-05
|
* error handlingsiikamiika2020-04-05
|
* throttle frame offset gettingsiikamiika2020-04-05
|
* refactorsiikamiika2020-04-05
|
* move frame offset forwarding code to a classsiikamiika2020-04-05
|
* simplify popup proxy preparesiikamiika2020-04-05
|
* fix and simplifysiikamiika2020-04-05
|
* adjust iframe popup position to root pagesiikamiika2020-04-05
|
* apply all options on profile changesiikamiika2020-03-21
|
* Update global declarationstoasted-nutbread2020-03-10
|
* Update how popups are createdtoasted-nutbread2020-02-16
|
* Simplify process to wait for iframe prepare completiontoasted-nutbread2020-02-16
|
* Merge pull request #357 from siikamiika/simplify-display-preparesiikamiika2020-02-14
|\ | | | | Simplify display prepare
| * use sendMessage to notify about initializationsiikamiika2020-02-14
| |
* | Define more globalstoasted-nutbread2020-02-11
|/
* Fix undefined idtoasted-nutbread2020-02-11
|
* Scale popup based on current page zoom factortoasted-nutbread2020-01-22
|
* Update license info URLtoasted-nutbread2020-01-01
|
* Update copyrighttoasted-nutbread2020-01-01
|
* Make PopupProxy functions async enabled status match Popuptoasted-nutbread2019-12-16
|
* isVisibleAsync => isVisibletoasted-nutbread2019-12-16
|
* Remove unused child gettertoasted-nutbread2019-12-16
|
* Add Popup.isProxytoasted-nutbread2019-12-16
|
* Flag members as privatetoasted-nutbread2019-12-16
|
* Mark PopupProxy internal functions as privatetoasted-nutbread2019-12-16
|
* Reposition popup on window resize rather than clear the searchtoasted-nutbread2019-10-17
| | | | Fixes #107
* Update *show* APIs to unified showContent and setContenttoasted-nutbread2019-10-17
|
* Update how custom CSS is appliedtoasted-nutbread2019-10-12
|
* Don't pass options around for calls to termsShow, kanjiShow, etc.toasted-nutbread2019-10-12
|
* Remove .show popup proxy API since it's not usedtoasted-nutbread2019-10-12
|
* Make popups store optionstoasted-nutbread2019-10-12
|
* Update rejections to use Errortoasted-nutbread2019-10-08
|
* Rename Popup.setVisible to setVisibleOverridetoasted-nutbread2019-10-05
|
* Fix tab focus being changed due to settings changestoasted-nutbread2019-09-29
|
* Add support for using optionsContext to select which profile to usetoasted-nutbread2019-09-18
|
* Remove destructuring from searchAt, containsPoint, docRangeFromPointtoasted-nutbread2019-09-14
|
* Merge pull request #207 from toasted-nutbread/popup-proxy-writing-modeAlex Yatskov2019-09-12
|\ | | | | Add writingMode to PopupProxy* termsShow and kanjiShow
| * Add writingMode to PopupProxy* termsShow and kanjiShowtoasted-nutbread2019-09-11
| |
* | Ensure both Popup and PopupProxy have valid depthtoasted-nutbread2019-09-10
|/
* change Popup.children to Popup.childsiikamiika2019-09-02
|
* make containsPoint async everywheresiikamiika2019-09-02
|