Commit 116a8e36 authored by Arlo Breault's avatar Arlo Breault
Browse files

[WIP] Migrate to Manifest V3

Implements #29

Unfortunately, this runs in to a "ReferenceError: RTCPeerConnection is
not defined" which is from,
https://github.com/w3c/webrtc-extensions/issues/77
parent f04d5115
Pipeline #10524 passed with stage
in 31 seconds
......@@ -153,7 +153,7 @@ class WebExtUI extends UI {
96: "assets/toolbar-on-96.png"
};
}
chrome.browserAction.setIcon({
chrome.action.setIcon({
path: path,
});
}
......@@ -219,11 +219,6 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
return snowflake.beginWebRTC();
};
window.onunload = function() {
if (snowflake !== null) { snowflake.disable(); }
return null;
};
window.onload = init;
init();
}());
{
"manifest_version": 2,
"manifest_version": 3,
"name": "Snowflake",
"version": "0.5.4",
"description": "__MSG_appDesc__",
"default_locale": "en_US",
"background": {
"scripts": [
"snowflake.js"
],
"persistent": true
"service_worker": "snowflake.js"
},
"browser_action": {
"action": {
"default_icon": {
"48": "assets/toolbar-on-48.png",
"96": "assets/toolbar-on-96.png"
......@@ -21,4 +18,4 @@
"permissions": [
"storage"
]
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment