mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-17 00:28:33 +00:00
Merge pull request #896 from steveseguin/base64css-param
add &base64css
This commit is contained in:
commit
c6de42650a
8
main.js
8
main.js
@ -583,6 +583,14 @@ async function main(){ // main asyncronous thread; mostly initializes the user s
|
||||
getById("main").classList.remove('hidden');
|
||||
}
|
||||
|
||||
if (urlParams.has("base64css") || urlParams.has("b64css")) {
|
||||
var base64Css = urlParams.get("base64css") || urlParams.get("b64css");
|
||||
var css = atob(base64Css);
|
||||
var cssStyleSheet = document.createElement("style");
|
||||
cssStyleSheet.innerText = css;
|
||||
document.querySelector("head").appendChild(cssStyleSheet);
|
||||
};
|
||||
|
||||
if (urlParams.has('password') || urlParams.has('pass') || urlParams.has('pw') || urlParams.has('p')) {
|
||||
session.password = urlParams.get('password') || urlParams.get('pass') || urlParams.get('pw') || urlParams.get('p');
|
||||
if (!session.password) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user