aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-core.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-12-30 15:55:13 -0500
committerJesús <heckyel@hyperbola.info>2019-12-30 15:55:13 -0500
commit288df6a7bf8b933e2dc499e38f4915fcf974c14b (patch)
tree77bba994f260c064d3ee7f76c427ddfaa4f91710 /js/vapi-core.js
parenta2c9deaa145b780722e93b3899600f287c8094a4 (diff)
downloadematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.lz
ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.xz
ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.zip
backport
- Flush caches on upgrade - Properly handle FrameModule's unloading - Use the new module and remove the old implementation
Diffstat (limited to 'js/vapi-core.js')
-rw-r--r--js/vapi-core.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/js/vapi-core.js b/js/vapi-core.js
index 94ae599..fe80d7c 100644
--- a/js/vapi-core.js
+++ b/js/vapi-core.js
@@ -111,12 +111,9 @@
// }
// frameModule needs to be cleared too
- let frameModuleURL = vAPI.getURL('frameModule.js');
- let frameModule = {};
-
- Cu.import(frameModuleURL, frameModule);
- frameModule.contentObserver.unregister();
- Cu.unload(frameModuleURL);
+ Cu.import('chrome://ematrix/content/lib/FrameModule.jsm');
+ contentObserver.unregister();
+ Cu.unload('chrome://ematrix/content/lib/FrameModule.jsm');
});
vAPI.noTabId = '-1';